css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <div id="main">
    <div class="fila">
        <div class="col-6 centro bg-k">
            <h1>Box-Model 1000px</h1>
        </div>
    </div>
    <div class="fila">
        <div class="col-6 centro bg-r">
            <h2>( 15% - 32% - 49% - 66% - 83% - 100% ) + 2% margin-right</h2>
        </div>
    </div>  
    <div class="fila">
        <div class="col-4"><h1>F1-4a</h1>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Expedita beatae accusamus aspernatur accusantium pariatur a itaque alias, facilis totam non sunt nobis vel mollitia maxime eaque quos nihil quas ad.</div>
        <div class="col-2 final"><h1>F1-2b</h1>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Similique quasi sed, totam ex blanditiis fugiat numquam quisquam nihil quis! Eaque molestias magnam accusantium alias voluptas nulla aliquam dicta, placeat odio.</div>
    </div>
    <div class="fila">
        <div class="col-2"><h1>F2-2a</h1>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ullam corporis quasi possimus, ipsum odio consequuntur rem atque, mollitia eum est sed maxime aperiam ab obcaecati nobis necessitatibus sint tempore ducimus.</div>
        <div class="col-2"><h1>F2-2b</h1>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Magnam at voluptas aut voluptatem libero, modi voluptates, minima explicabo dignissimos sunt numquam aperiam esse maiores. Nisi qui temporibus labore, a iusto.</div>
        <div class="col-2 final"><h1>F2-2c</h1>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Obcaecati, quo voluptatibus accusamus inventore eos assumenda in id perspiciatis dolores facere. Adipisci fugit reprehenderit accusantium sit ad expedita tempora necessitatibus reiciendis.</div>
    </div>
    <div class="fila">
        <div class="col-1"><h1>F3-1a</h1>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Animi beatae consectetur labore amet. Animi eaque ab mollitia, doloribus ipsam placeat praesentium quibusdam expedita consequuntur quis, distinctio tempora ea ad iste!</div>
        <div class="col-1"><h1>F3-1b</h1>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Corporis assumenda laborum non ducimus rem cumque. Animi optio quidem illo, velit recusandae neque totam debitis ducimus iure? Distinctio, sint eligendi magnam.</div>
        <div class="col-1"><h1>F3-1c</h1>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Inventore minus laborum laboriosam nesciunt eveniet, molestiae facilis placeat illum quasi nulla ratione dolorum aliquam facere eos aspernatur accusantium, aut! Nesciunt, eveniet.</div>
        <div class="col-1"><h1>F3-1d</h1>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Error temporibus delectus, sunt distinctio incidunt maiores, illum consequatur atque unde doloremque, eos velit? In vitae officia asperiores recusandae rem, aut possimus.</div>
        <div class="col-1"><h1>F3-1e</h1>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Natus eum dolorum corrupti sunt. Natus at quidem, animi assumenda aspernatur laudantium alias, deleniti nemo numquam sapiente consequatur rerum eligendi aperiam iure.</div>
        <div class="col-1 final"><h1>F3-1f</h1>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Vel ullam cupiditate, iste saepe deserunt nesciunt, mollitia aspernatur accusantium consequuntur dolor velit in ratione distinctio dolore quod, sequi tempore quia? Accusantium.</div>
    </div>
    <div class="fila">
        <div class="col-3"><h1>F4-3a</h1>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Alias quod qui, incidunt ipsum dolor in, ut id aut molestiae cumque dolorum? Consequatur maiores dolorem, atque deleniti autem sunt, modi accusantium.</div>
        <div class="col-3 final"><h1>F4-3b</h1>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quia voluptas repellendus excepturi veritatis, aliquid, impedit nihil libero dolorem sint odit at. Tempora aliquam quisquam natus hic itaque nulla iure reiciendis.</div>
    </div>

    <div class="fila">
        <div class="col-6 centro bg-k">
            <h6>(cc) 3con14</h6>
        </div>
    </div>
    <br class="cierra">
</div>
            
          
!
            
              /*  CSS3 | Box-Model 1000 */

/*------------------------------------
    For mobile
  ------------------------------------ */
*, h1 {
    padding            : 0;
    margin             : 0;
    -webkit-box-sizing : border-box;
    -moz-box-sizing    : border-box;
    box-sizing         : border-box;
    -webkit-transition : all .5s linear;
    -moz-transition    : all .5s linear;
    -ms-transition     : all .5s linear;
    -o-transition      : all .5s linear;
    transition         : all .5s linear;
}

body {
    background: #666;
    color     : #333;
    font-size : 14px;
}

#main {
    max-width : 100%;
    width     : 96%;
    margin    : 2% auto;
    background: rgba(250,250,240,0.8);
    padding   : 1%;
}
.col-1,.col-2,.col-3,.col-4,.col-5,.col-6 {
    width   : 100%;
    padding : 1%;
    margin  : 1% 0;
}
.col-1:hover,.col-2:hover,.col-3:hover,.col-4:hover,.col-5:hover,.col-6:hover {
    outline   : 1px solid rgba(255,255,255,1);
    background: rgba(255,255,255,0.6)
}

.fila, .cierra { clear: both; }
.centro { text-align: center;  }
.justi  { text-align: justify; }
.dcho   { text-align: right; }

.centra { margin : 0 auto; display: block; }
.izda   { float  : left; margin: 5px 10px 5px 0;  }
.dcha   { float  : right; margin: 5px 0 5px 10px; }

.bg-w { background: rgba(255,255,255,0.1); }
.bg-k { background: rgba(0,0,0,0.1);       }
.bg-r { background: rgba(255,0,0,0.1);     }
.bg-g { background: rgba(0,255,0,0.1);     }
.bg-b { background: rgba(0,0,255,0.1);     }

.tx-w { color: rgba(255,255,255,0.5); }
.tx-b { color: rgba(0,0,0,0.5);       }
.tx-r { color: rgba(255,0,0,0.5);     }
.tx-g { color: rgba(0,255,0,0.5);     }
.tx-b { color: rgba(0,0,255,0.5);     }

/*-------------------------------
    For desktop
  ------------------------------- */
@media (min-width: 569px) {
    #main {
        max-width : 1000px;
        background: rgba(250,250,240,0.2);
    }
    .col-1,.col-2,.col-3,.col-4,.col-5,.col-6 {
        float        : left;
        display      : block;
        margin-right : 2%;
    }
    .col-1 { width: 15%; }
    .col-2 { width: 32%; }
    .col-3 { width: 49%; }
    .col-4 { width: 66%; }
    .col-5 { width: 83%; }
    .col-6 { width: 100%; }
    .final { margin-right: 0;}
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console