{"__browser":{"device":"unknown_device","mobile":false,"name":"unknown browser","platform":"unknown_platform","version":"0"},"__constants":{},"__CPDATA":{"domain_iframe":"https://cdpn.io","environment":"production","host":"codepen.io","iframe_allow":"accelerometer; ambient-light-sensor; camera; display-capture; encrypted-media; geolocation; gyroscope; microphone; midi; payment; web-share; vr","iframe_sandbox":"allow-forms allow-modals allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-top-navigation-by-user-activation allow-downloads allow-presentation"},"__graphql":{"data":{"data":{"sessionUser":{"id":"VoDkNZ","name":"Captain Anonymous","title":"Captain Anonymous","avatar":"https://assets.codepen.io/t-1/user-default-avatar.jpg?format=auto&version=0","currentContext":{"id":"VoDkNZ","title":"Captain Anonymous","name":"Captain Anonymous","avatar":"https://assets.codepen.io/t-1/user-default-avatar.jpg?format=auto&version=0","username":"anon","__typename":"User"},"currentTeamId":null,"username":"anon","admin":false,"anon":true,"pro":false,"verified":false,"teams":[],"__typename":"User"}}},"url":"https://codepen.io/graphql","api":"cprails","cpedata":{"action":"show","controller":"live_fullpage"}},"__user":{"anon":true,"base_url":"/anon/","current_team_id":0,"current_team_hashid":null,"hashid":"VoDkNZ","id":1,"itemType":"user","name":"Captain Anonymous","paid":false,"tier":0,"username":"anon","created_at":null,"email_verified":null,"collections_count":0,"collections_private_count":0,"followers_count":0,"followings_count":0,"pens_count":0,"pens_private_count":0,"projects_count":0,"projects_private_count":0},"__firebase":{"config":{"apiKey":"AIzaSyBgLAe7N_MdFpuVofMkcQLGwwhUu5tuxls","authDomain":"codepen-store-production.firebaseapp.com","databaseURL":"https://codepen-store-production.firebaseio.com","disabled":false,"projectId":"codepen-store-production"},"token":"eyJhbGciOiJSUzI1NiJ9.eyJhdWQiOiJodHRwczovL2lkZW50aXR5dG9vbGtpdC5nb29nbGVhcGlzLmNvbS9nb29nbGUuaWRlbnRpdHkuaWRlbnRpdHl0b29sa2l0LnYxLklkZW50aXR5VG9vbGtpdCIsImNsYWltcyI6eyJvd25lcklkIjoiVm9Ea05aIiwiYWRtaW4iOmZhbHNlfSwiZXhwIjoxNjc1MDI3NDEzLCJpYXQiOjE2NzUwMjM4MTMsImlzcyI6ImZpcmViYXNlLWFkbWluc2RrLThva3lsQGNvZGVwZW4tc3RvcmUtcHJvZHVjdGlvbi5pYW0uZ3NlcnZpY2VhY2NvdW50LmNvbSIsInN1YiI6ImZpcmViYXNlLWFkbWluc2RrLThva3lsQGNvZGVwZW4tc3RvcmUtcHJvZHVjdGlvbi5pYW0uZ3NlcnZpY2VhY2NvdW50LmNvbSIsInVpZCI6IlZvRGtOWiJ9.GFqo6HXNUUjt6L6XJQzMiI_L_IiYqn3eESb7dE-llePFSUkqp6MqDRGNTSI9ny3dQmCEdcLmwFyxc-HJb0juy2uh2XHPQIpw5LOH9TVvBNnbKa0J9NaLTsBuuE0LJPwLqG1OF3iUrALQi8GqblEaqV6Ap28LrBCC6vhURorPiAk1iq8GGEFxRs5Xi9u18PSdad4rhajxBVtKwJpaY7t2UjV20fT8B13mp5m9NERIFQYPW0jlg_kwjzO9qwtDWlpjoMVRmBrcdjcsBXCf2cyUSW_4gtWyATbRqFD_dFXgd4eWnGYqVvXSiz7O5OCl9h21cnhBfpcFfCWT-vD8BXUnBg"},"__pay_stripe_public_key":"pk_live_2GndomDfiklqpSNQn8FrGuwZSMIMzha7DkLJqlYe7IR0ihKAlKdiHg68JJc5eVPt68rzAjzAAVXcUwjySHRCsgjQQ00gtRBUFNH","__pay_braintree_env":"production","__item":"{\"id\":11615858,\"user_id\":927610,\"html\":\"<header> \\n <h1>Vertical Centering: Everything You Need to Know<\\/h1>\\n <a href=\\\"http:\\/\\/webdesignerwall.com\\/tutorials\\/css-vertical-centering-everything-need-know\\\" target=\\\"_blank\\\">View Tutorial<\\/a>\\n<\\/header>\\n\\n<div class=\\\"intro\\\">*Hover over the text to see how each method centers it within its parent.<\\/div>\\n\\n<div class=\\\"container\\\">\\n <h2>absolute<\\/h2>\\n <div class=\\\"item one\\\"><p>To be able under all circumstances to practice five things constitutes perfect virtue; these five things are gravity, generosity of soul, sincerity, earnestness and kindness.<\\/p><\\/div>\\n<\\/div>\\n<div class=\\\"container\\\">\\n <h2>table<\\/h2>\\n <div class=\\\"item two\\\"><p>To be able under all circumstances to practice five things constitutes perfect virtue; these five things are gravity, generosity of soul, sincerity, earnestness and kindness.<\\/p><\\/div>\\n<\\/div>\\n<div class=\\\"container\\\">\\n <h2>transform<\\/h2>\\n <div class=\\\"item three\\\"><p>To be able under all circumstances to practice five things constitutes perfect virtue; these five things are gravity, generosity of soul, sincerity, earnestness and kindness.<\\/p><\\/div>\\n<\\/div>\\n<div class=\\\"container\\\">\\n <link href=\\\"https:\\/\\/maxcdn.bootstrapcdn.com\\/font-awesome\\/4.7.0\\/css\\/font-awesome.min.css\\\" rel=\\\"stylesheet\\\" integrity=\\\"sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN\\\" crossorigin=\\\"anonymous\\\">\\n <h2>line height<\\/h2>\\n <div class=\\\"item four\\\"><i class=\\\"fa fa-css3\\\" aria-hidden=\\\"true\\\"><\\/i><\\/div>\\n<\\/div>\\n<div class=\\\"container\\\">\\n <h2>padding<\\/h2>\\n <div class=\\\"item five\\\"><p>When I walk along with two others, from at least one I will be able to learn.<\\/p><\\/div>\\n<\\/div>\\n<div class=\\\"container\\\">\\n <h2>flexbox<\\/h2>\\n <div class=\\\"item six\\\"><p>To be able under all circumstances to practice six things constitutes perfect virtue; these six things are gravity, generosity of soul, sincerity, earnestness, kindness and vertical alignment.<\\/p><a href=\\\"#\\\"> Link <\\/a><\\/div>\\n<\\/div>\\n<div class=\\\"container\\\">\\n <h2>Combined Elements<\\/h2>\\n <div class=\\\"item with-image\\\">\\n <figure><img src=\\\"https:\\/\\/24.media.tumblr.com\\/1d8dd5361a12d9c51077764adf9a1158\\/tumblr_mvdci7SSY51r4mh0bo1_r1_500.gif\\\"><\\/figure>\\n <div class=\\\"content\\\"><h3>Maybe A Title<\\/h3><p>When I walk along with two others, from at least one I will be able to learn.<\\/p><\\/div>\\n <\\/div> \\n<\\/div>\\n\",\"css\":\"html {\\n box-sizing: border-box;\\n}\\n\\n*,\\n*:before,\\n*:after {\\n box-sizing: inherit;\\n}\\n\\nbody {\\n background: linear-gradient(90deg, #f598a8, #f6edb2);\\n align-items: center;\\n height: 100vh;\\n position: relative;\\n font-family: 'source sans pro', sans-serif;\\n}\\n.intro{\\n font-size: 1.2rem;\\n display: block;\\n text-align: center;\\n color: #555;\\n font-style: italic;\\n}\\n.container {\\n width: 80vw;\\n margin: 2vw auto;\\n border: 0.25rem solid rgba(255, 255, 255, 0.1);\\n padding: 2vw;\\n transition: border 0.25s ease;\\n}\\n.container h2{\\n padding: 0 0 0 1rem;\\n opacity: 0.25;\\n font-size: 2rem;\\n transition: opacity 0.25s ease;\\n }\\n.item {\\n position: relative;\\n background-color: white;\\n margin: 1rem;\\n padding: 1rem;\\n min-height: 33vh;\\n overflow: hidden;\\n font-size: 1.25rem;\\n color: rgba(0, 0, 0, 0.25);\\n box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);\\n transition: all 0.25s ease;\\n}\\n.item:hover {\\n color: rgba(0, 0, 0, 0.75);\\n box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);\\n}\\n.item p{\\n margin: 0;\\n padding: 0;\\n border: 0.25rem dashed rgba(239, 230, 195, 0.1);\\n}\\n.item:hover p {\\n border: 0.25rem dashed rgba(239, 230, 195, 0.75);\\n}\\n.item:hover p:after {\\n opacity: 0.5;\\n}\\n\\/* Positioning *\\/\\n\\n\\/* Absolute *\\/\\n\\n.one p{\\n position:absolute;\\n top: 33%;\\n right:0;\\n bottom:0;\\n left:0;\\n margin: auto;\\n padding: 0 2rem;\\n}\\n\\/* table *\\/\\n.two{\\n display: table;\\n}\\n.two p{\\n display: table-cell;\\n vertical-align: middle;\\n}\\n\\/* translate *\\/\\n.three{\\n height: 33vh;\\n}\\n.three p{\\n position: relative;\\n top: 50%;\\n -webkit-transform: translateY(-50%);\\n -ms-transform: translateY(-50%);\\n transform: translateY(-50%);\\n}\\n\\/* line height *\\/\\n.four{\\n width: 4rem;\\n height: 4rem;\\n border-radius: 100%;\\n margin: 0 auto;\\n padding: 0;\\n min-height: auto;\\n line-height: 4rem;\\n text-align: center;\\n}\\n\\n\\n\\/* padding *\\/\\n.five{\\n padding: 16.5vh 8.25vh;\\n text-align: center;\\n}\\n\\n\\n\\/* flexbox *\\/\\n.six{\\n display: flex;\\n flex-direction: column;\\n justify-content: center;\\n}\\n\\n\\/* flexbox with image *\\/\\n.with-image{\\n height: auto;\\n display: flex;\\n flex-direction: row;\\n}\\n.with-image img, .with-image .content{\\n width: calc(50%);\\n}\\n.with-image figure img{\\n width: 100%;\\n height: auto;\\n object-fit: contain;\\n}\\n.content{\\n margin: 0 2rem;\\n align-self: center;\\n}\\n\\n\\n\\/* General style *\\/\\na{\\n font-size: .8rem;\\n text-decoration: none;\\n color: #999;\\n text-transform: uppercase;\\n font-family: sans-serif;\\n}\\n\\nheader{\\n width: 100%;\\n display: block;\\n background: #FFF;\\n height: 40px;\\n margin-bottom: 4%;\\n color: #ccc;\\n font-family: sans-serif;\\n font-weight: bold;\\n box-shadow: 0px 2px 0px 0px rgba(125,121,125,0.3);\\n overflow: hidden;\\n}\\nheader h1, header a{\\n display: inline-block;\\n font-size: .8rem;\\n margin: auto 10px;\\n line-height: 40px;\\n\\n}\\nheader h1{\\n text-transform: uppercase;\\n letter-spacing: 1px;\\n}\\nheader a{\\n text-decoration: none;\\n background-color: #eee;\\n color: #999;\\n padding: 0 20px;\\n transition: all ease-in-out .3s;\\n}\\nheader a:hover{\\n background-color: #93dfec;\\n color: #eee;\\n margin-left: -3px;\\n}\\n\\n\\n\\n@media screen and (max-width: 667px){\\n .item:not(.four){\\n min-height: 50vh;\\n }\\n .item span{\\n font-size: 4vw;\\n }\\n .with-image{\\n flex-direction: column;\\n justify-content: center;\\n }\\n .with-image img, .with-image .content{\\n text-align: center;\\n width: calc(100%);\\n height: calc(100%);\\n}\",\"js\":\"\",\"html_pre_processor\":\"none\",\"css_pre_processor\":\"none\",\"js_pre_processor\":\"none\",\"html_classes\":\"\",\"css_starter\":\"neither\",\"js_library\":null,\"created_at\":\"2016-12-16T12:32:24.000Z\",\"updated_at\":\"2017-01-30T20:22:32.000Z\",\"title\":\"Vertical Centering With CSS\",\"description\":\"\",\"slug_hash\":\"bBOeax\",\"head\":\"\",\"private\":false,\"slug_hash_private\":\"b5b788d21a52252cf7677537a2a0efed\",\"has_animation\":false,\"team_id\":0,\"css_prefix\":\"neither\",\"template\":false,\"parent_id\":0,\"comments_count\":0,\"custom_screenshot_filename\":null,\"loves_count\":0,\"pick\":false,\"popularity_score\":0,\"views_count\":0,\"pick_visible_at\":\"2022-11-08T22:42:55.128Z\",\"pen_hash\":null,\"hashid\":\"bBOeax\"}"}