cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

Quick-add: + add another resource

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.

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.

            
              <div class="cp author" data-name="Author CP">
    <div class="cr author---cr">
        <div class="hr author---">
            <div class="hr_cr author---hr_cr">
                <div class="h author---h">
                    <span class="h_l author---h_l">Author</span>
                </div>
            </div>
        </div>
        <div class="ct author---ct">
            <div class="ct-cr author---ct_cr">
                
                <span class="obj author-name" data-name="Author Name OBJ">
                    <a class="a author-name---a" href="#" title="Author Name">
                        <span class="a_l author-name---a_l">Author Name</span>
                    </a>
                </span><!-- Author Name OBJ -->

                <span class="obj author-avatar" data-name="Author Avatar OBJ">
                    <a class="a author-avatar---a" href="#" title="Author Avatar">
                        <span class="ce author-avatar---ce">
                            <img class="img author-avatar---img" src="http://lorempixel.com/160/160/" width="160" height="160" alt="Author Avatar">
                        </span>
                    </a>
                </span><!-- Author Avatar OBJ -->
            
            </div>
        </div>
    </div>
</div><!-- Author CP -->


            
          
!
            
              :root
{
    font-family: sans-serif;
}

body
{
    margin: 0;
}

/* Visually Hide Elements */
.author---h
{
  position:absolute;margin:-1px;padding:0;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);border:0;word-wrap:normal;
}

.author---ct
{
    display: flex;
    justify-content: center;
}

.author---ct_cr
{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    
    margin: 1rem;
    
    max-width: 240px;
    
    transition: .125s background-color ease-in-out;
}

.author-name
{
    order: 1;
    flex: 1 100%;
    justify-content: center;
    
    text-align: center;
}

.author-avatar
{
    flex: 1 100%;
    justify-content: center;
    
    text-align: center;
}

.author-name---a
{
    color: initial;
    
    text-decoration: none;
}

.author-avatar---a
{
    padding: 1rem;
}

/* Maintain adequate Active Area (AA) */
.author-avatar---a,
.author-name---a_l
{
    box-sizing: border-box;

    display: flex;
    justify-content: center;
    align-items: center;
    
    min-width: 3rem;
    min-height: 3rem;
}

/* Style the Avatar */
.author-avatar---ce
{
    display: block;

    width: 4rem;
    height: 4rem;
    
    border-radius: 50%;
    overflow: hidden;
}

/* Responsive Avatar */
.author-avatar---img
{
    width: 100%;
    height: auto;
}

/* Interactivity */
.author---ct_cr:hover
{
    background-color: lightgray;
    
    border-radius: .125rem;
}
            
          
!
999px
Loading ..................

Console