cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmloctocatspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

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.

            
              <h2 class="display-1">Bootstrap 4 Cards Demo</h2>
<h4 class="title">Demo Card con todo</h4>
<div class="demo-card">
    <div class="card">
        <div class="card-header">
             Esto es un card header
        </div>
        <img class="card-img-top" src="http://placekitten.com/500/200">
        <div class="card-block">
            <h4 class="card-title">Título de la tarjeta</h4>
            <h6 class="card-subtitle text-muted">Subtítulo</h6>
            <p class="card-text">Ejemplo de texto contenido dentro de una tarjeta bootstrap y blah, blah, blah...</p>
            <ul class="list-group list-group-flush">
                <li class="list-group-item">Cras justo odio</li>
                <li class="list-group-item">Dapibus ac facilisis in</li>
                <li class="list-group-item">Vestibulum at eros</li>
            </ul>
        </div>
        <div class="card-block">
            <a href="#" class="card-link">Card link</a>
            <a href="#" class="card-link">Otro link</a>
        </div>
        <div class="card-block">
            <a href="#" class="btn btn-primary">Botón</a>
        </div>
        <div class="card-footer text-muted">
            Esto es el footer de la tarjeta
        </div>
    </div>
</div>
<h4 class="title">Diferentes fondos para las tarjetas</h4>
<div class="demo-card">
    <div class="card card-inverse card-primary text-center">
        <div class="card-block">
            <blockquote class="card-blockquote">
                <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
                <footer>Footer
                    <cite title="Source Title">y texto para citar</cite>
                </footer>
            </blockquote>
        </div>
    </div>
    <div class="card card-inverse card-success text-center">
        <div class="card-block">
            <blockquote class="card-blockquote">
                <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
                <footer>Footer
                    <cite title="Source Title">y texto para citar</cite>
                </footer>
            </blockquote>
        </div>
    </div>
    <div class="card card-inverse card-info text-center">
        <div class="card-block">
            <blockquote class="card-blockquote">
                <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
                <footer>Footer
                    <cite title="Source Title">y texto para citar</cite>
                </footer>
            </blockquote>
        </div>
    </div>
    <div class="card card-inverse card-warning text-center">
        <div class="card-block">
            <blockquote class="card-blockquote">
                <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
                <footer>Footer
                    <cite title="Source Title">y texto para citar</cite>
                </footer>
            </blockquote>
        </div>
    </div>
    <div class="card card-inverse card-danger text-center">
        <div class="card-block">
            <blockquote class="card-blockquote">
                <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
                <footer>Footer
                    <cite title="Source Title">y texto para citar</cite>
                </footer>
            </blockquote>
        </div>
    </div>
</div>
<h4 class="title">Grupos de tarjetas <small>(sus alturas siempre coinciden)</small></h4>
<div class="demo-card">
    <div class="card-group">
        <div class="card">
            <img class="card-img-top img-responsive" src="http://placekitten.com/500/304">
            <div class="card-block">
                <h4 class="card-title">Título tarjeta</h4>
                <p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
                <p class="card-text"><small class="text-muted">Última actualización hace 3 min</small></p>
            </div>
        </div>
        <div class="card">
            <img class="card-img-top img-responsive" src="http://placekitten.com/500/304">
            <div class="card-block">
                <h4 class="card-title">Card title</h4>
                <p class="card-text">This card has supporting text below as a natural lead-in to additional content.</p>
                <p class="card-text"><small class="text-muted">Última actualización hace 3 min</small></p>
            </div>
        </div>
        <div class="card">
            <img class="card-img-top img-responsive" src="http://placekitten.com/500/304">
            <div class="card-block">
                <h4 class="card-title">Card title</h4>
                <p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This card has even longer content than the first to show that equal height action.</p>
                <p class="card-text"><small class="text-muted">Última actualización hace 3 min</small></p>
            </div>
        </div>
    </div>
</div>
<h4 class="title">Card Decks <small>(igual que los grupos pero separados)</small></h4>
<div class="demo-card">
    <div class="card-deck-wrapper">
        <div class="card-deck">
            <div class="card">
                <img class="card-img-top img-responsive" src="http://placekitten.com/500/304">
                <div class="card-block">
                    <h4 class="card-title">Título de la tarjeta</h4>
                    <p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
                    <p class="card-text"><small class="text-muted">Última actualización hace 3 min</small></p>
                </div>
            </div>
            <div class="card">
                <img class="card-img-top img-responsive" src="http://placekitten.com/500/304">
                <div class="card-block">
                    <h4 class="card-title">Título de la tarjeta</h4>
                    <p class="card-text">This card has supporting text below as a natural lead-in to additional content.</p>
                    <p class="card-text"><small class="text-muted">Última actualización hace 3 min</small></p>
                </div>
            </div>
            <div class="card">
                <img class="card-img-top img-responsive" src="http://placekitten.com/500/304">
                <div class="card-block">
                    <h4 class="card-title">Título de la tarjeta</h4>
                    <p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This card has even longer content than the first to show that equal height action.</p>
                    <p class="card-text"><small class="text-muted">Última actualización hace 3 min</small></p>
                </div>
            </div>
        </div>
    </div>
</div>

            
          
!
            
              h2 {
    text-align: center;
    margin: 30px 0;
}
.demo-card {
  width: 100%;
  max-width: 500px;
  margin: 0 auto 100px;
}
h4.title {
  text-align: center;
}
            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console