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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

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="container">
        <div class="row">
            <div class="col-md-4 the-article">
                <div class="artigo-main">
                    <div class="artigo-content ">
                        <div class="artigo-inner">
                            <h3><a href="#">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</a></h3>
                            <p>Abril 26, 2018</p>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-md-4 the-article">
                <div class="artigo-main">
                    <div class="artigo-content" style="background: #DDD;">
                        <div class="artigo-inner">
                            <h3><a href="#">Mauris in metus vitae libero laoreet malesuada vel a turpis. Sed tincidunt, arcu quis commodo auctor, purus erat egestas metus, luctus tempor orci quam sed augue. Interdum et malesuada fames ac ante ipsum primis in faucibus. </a></h3>
                            <p>Abril 26, 2018</p>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-md-4 the-article">
                <div class="artigo-main">
                    <div class="artigo-content">
                        <div class="artigo-inner">
                            <h3><a href="#"> Fusce quis risus ut felis laoreet finibus. Mauris gravida ante non quam rutrum, a dictum eros bibendum. Aliquam non euismod lacus, sed rutrum massa. Fusce in diam eu elit elementum rhoncus. Vivamus dignissim rhoncus cursus. Vivamus et nibh eu metus vestibulum lobortis. Donec augue nisl, ornare vel mi non, luctus aliquet ligula. Sed vitae euismod orci, in vestibulum dui. Sed condimentum ex arcu, et vulputate sem condimentum sed. Etiam faucibus ante sit amet enim sagittis, nec blandit orci malesuada. Aliquam quam lorem, vehicula eget malesuada et, volutpat id est. Quisque vitae ante quis erat blandit tempus.
 </a></h3>
                            <p>Abril 26, 2018</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
              
            
!

CSS

              
                html,
body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1170px;
    margin: 0px auto;
    height: 100% !important;
    /* fix height center content*/
}

.artigo-main {
    height: 100%;
    width: 100%;
    display: table;
    text-align: center;
}

.artigo-content {
    display: table-cell;
    vertical-align: middle;
    background: #fff;
    color: #666666;
    border: 1px solid #DDD;
}

.artigo-inner {
    margin: auto;
    width: 90%;
}

.the-article {
    /*  height: 100%;
width: 32%;
display: inline-block;
margin: 0px auto;*/
}

.the-article {}

.artigo-content {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.artigo-content a {
    color: #AAA
}
              
            
!

JS

              
                
              
            
!
999px

Console