Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                        <div class="outer-wrap">

            <section class="content-wrap to-know">
                <h2 class="to-know__h3">It's good to know</h2>

                <div class="row">
                    <div class="col-1-of-4 col-1-of-4--center">
                        <img src="/_/img/home/guarantee.jpg" alt="Our Guarantees">
                        <h4 class="to-know__h4">Our Guarantees</h4>
                        <p class="to-know__copy">Jay-Be<sup>&reg;</sup> products are built to last and for your peace of mind we now offer a Lifetime Frame Guarantee on all of our Folding and Sofa Beds.</p>
                        <a class="button-square to-know__link" href="#">Discover More</a>
                    </div>

                    <div class="col-1-of-4 col-1-of-4--center">
                        <img src="/_/img/home/where-to-buy.jpg" alt="Where to Buy">
                        <h4 class="to-know__h4">Where to Buy</h4>
                        <p class="to-know__copy">Some of the UK's most popular online retailers sell Jay-Be<sup>&reg;</sup> Sleep Smart products. Find your favourite retailer on our Where to Buy page.</p>
                        <a class="button-square to-know__link" href="#">Find a Retailer</a>
                    </div>

                    <div class="col-1-of-4 col-1-of-4--center">
                        <img src="/_/img/home/support.jpg" alt="Support">
                        <h4 class="to-know__h4">Support</h4>
                        <p class="to-know__copy">We take great pride in making sure our customer care is second to none. If you need to contact us our friendly team are here to help.</p>
                        <a class="button-square to-know__link" href="#">Discover More</a>
                    </div>

                    <div class="col-1-of-4 col-1-of-4--center">
                        <img src="/_/img/home/tv.jpg" alt="Jay-Be&reg; TV">
                        <h4 class="to-know__h4">Jay-Be<sup>&reg;</sup> TV</h4>
                        <p class="to-know__copy">To help you find the right product, we’ve made all of our latest product videos available all in one place for easy viewing.</p>
                        <a class="button-square to-know__link" href="#">See in action</a>
                    </div>
                </div>
            </section>

        </div><!-- outer-wrap -->
              
            
!

CSS

              
                body{margin:0}html{-webkit-box-sizing:border-box;box-sizing:border-box;line-height:1.15}*,*:before,*:after{-webkit-box-sizing:inherit;box-sizing:inherit}article,aside,footer,header,nav,section{display:block}button,input,select,textarea,optgroup{font-family:inherit;font-weight:400;line-height:1.15;margin:0}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.35em}label{cursor:pointer}input,textarea{-webkit-appearance:none;-moz-appearance:none;appearance:none;resize:none;border-radius:0}textarea{overflow:auto;vertical-align:top;min-height:100%}button,[type='button'],[type='reset'],[type='submit']{-webkit-appearance:button}legend{padding:0}[type='number']::-webkit-inner-spin-button,[type='number']::-webkit-outer-spin-button{height:auto}[type='search']{-webkit-appearance:textfield;outline-offset:-2px}[type='search']::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.sleep-smart__h2,.to-know__h3{margin-bottom:3rem}.col-1-of-3--center,.col-1-of-4--center,.sleep-smart__h2,.sleep-smart__faux-link,.to-know__h3{text-align:center}.button-square{background:#252525;color:#fff;font-size:1.6rem;padding:1rem 0;display:block;margin:0 2.5rem}.outer-wrap{background:#fafafa;border-top:1px solid #e4e4e4}.outer-wrap::after{content:"";display:table;clear:both}.content-wrap{max-width:134.3rem;margin:3rem auto 5rem auto}.row{margin:0 2.5rem;background:gold}.row::after{content:"";display:table;clear:both}.col-1-of-3,.col-1-of-4{float:left}.col-1-of-3:not(:last-child),.col-1-of-4:not(:last-child){margin-right:2.5rem}.col-1-of-3{width:calc((100% - 2.5rem * 2)/3)}.col-1-of-4{width:calc((100% - 2.5rem * 3)/4);background:red}@media only screen and (max-width: 58em){.col-1-of-4{width:calc((100% - 2.5rem) / 2)}.col-1-of-4:nth-child(2){margin-right:0;margin-bottom:2.5rem;background:teal}.col-1-of-4:first-child{margin-bottom:2.5rem}}.col-1-of-3--folding-beds{float:right;overflow:hidden;margin-right:0 !important}.col-1-of-3--child-mattresses,.col-1-of-3--accessories{margin-bottom:2.5rem}.col-1-of-3__link--folding-beds{position:relative;display:block;height:0;padding-bottom:calc((55.36193% * 2) + (6rem * 2) + 2.5rem)}.sleep-smart__img--folding-beds{max-width:none;height:100%;position:absolute;right:0}.sleep-smart__title-box--folding-beds{position:absolute;left:0;right:0;bottom:0}.site-header{border-bottom:1px solid #e4e4e4;font-size:0}.site-logo{display:inline-block}.site-logo__img{width:760px;height:auto;position:absolute;left:-245px;top:-5px;z-index:50}.nav-upper{border-bottom:2px solid #049cb8}.nav-upper::after{content:"";display:table;clear:both}.nav-upper__list{font-size:1.5rem;float:right;margin-right:3rem}.nav-upper__item{position:relative;margin-right:3rem}.nav-upper__icon{width:22px;height:auto;position:absolute;right:-3rem;bottom:1.4rem}.nav-upper__link{padding:1.4rem 0;display:inline-block;position:relative}.nav-upper__link:before{content:"";position:absolute;width:100%;height:1px;bottom:12px;left:0;background-color:#049cb8;visibility:hidden;-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transition:all 0.2s ease-in-out 0s;transition:all 0.2s ease-in-out 0s}.nav-upper__link:hover:before{visibility:visible;-webkit-transform:scaleX(1);transform:scaleX(1)}.nav-main__list{font-size:1.4rem;font-weight:500;text-transform:uppercase;text-align:center;margin-left:8rem}.nav-main__item{display:inline-block;padding:0 2rem}.nav-main__link{padding:2.1rem 0 2rem 0;display:inline-block;position:relative}.nav-main__link:before{content:"";position:absolute;width:100%;height:2px;bottom:15px;left:0;background-color:#049cb8;visibility:hidden;-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transition:all 0.2s ease-in-out 0s;transition:all 0.2s ease-in-out 0s}.nav-main__link:hover:before{visibility:visible;-webkit-transform:scaleX(1);transform:scaleX(1)}.site-footer{background:#0d0d0d;height:600px;color:#fff}html{font-size:62.5%}@media only screen and (max-width: 37.5em){html{font-size:58%}}body{font-family:"Gotham A", "Gotham B", sans-serif;font-weight:400;color:#202020;-webkit-font-smoothing:subpixel-antialiased;letter-spacing:-0.06em}h1,h2,h3,h4,h5,h6{font-weight:400;margin:0}p{font-weight:300;margin:0}ul{list-style-type:none;margin:0;padding:0}a{text-decoration:none;color:currentColor}strong{font-weight:700}::-moz-selection{background:#202020;color:#fff;text-shadow:none}::selection{background:#202020;color:#fff;text-shadow:none}img{max-width:100%}.slider{height:200px;background:red url(/_/img/slider/folding-beds.jpg) center center no-repeat;background-size:cover}.icon-panel{background:#252525;color:#fff;text-align:center;padding:3rem}.icon-panel__h1{font-size:2.8rem}.icon-panel__list{max-width:96rem;height:100%;margin:2.5rem auto 0 auto;padding:0 2.5rem;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}@media only screen and (max-width: 37.5em){.icon-panel__list{-ms-flex-wrap:wrap;flex-wrap:wrap}}@media only screen and (max-width: 37.5em){.icon-panel__item{-ms-flex-preferred-size:50%;flex-basis:50%}.icon-panel__item:nth-child(-n+2){margin-bottom:2rem}}.icon-panel__icon{fill:#fff;width:auto;height:5.8rem}.icon-panel__text{display:block;font-size:1.4rem;margin-top:5px}.sleep-smart__h2{font-size:3.2rem}.sleep-smart__img{display:block}.sleep-smart__title-box{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:#9f9fae;color:#fff}.sleep-smart__title-box--child-mattresses{background:#8ccdd9}.sleep-smart__title-box--accessories{background:#acbdbd}.sleep-smart__title-box--sofas{background:#b1aa9a}.sleep-smart__title-box--bespoke{background:#01213f}.sleep-smart__h3{padding-left:1.75rem;font-size:1.8rem}.sleep-smart__faux-link{height:6rem;padding:1.4rem 1.5rem;font-size:1.3rem;background:#252525}.sleep-smart__faux-link--bespoke{background:#d7cd88}.sleep-smart .col-1-of-3{-webkit-transition:all .5s ease-in-out;transition:all .5s ease-in-out}.sleep-smart .col-1-of-3:hover{-webkit-box-shadow:0 0 15px rgba(0,0,0,0.4);box-shadow:0 0 15px rgba(0,0,0,0.4);-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.to-know__h3{font-size:3.2rem}.to-know__h4{font-size:2rem;padding:1rem 0 .5rem 0}.to-know__copy{font-size:1.4rem;line-height:1.8rem;padding-bottom:2.5rem}

              
            
!

JS

              
                
              
            
!
999px

Console