Skip to content

Instantly share code, notes, and snippets.

@3200creative
Created April 7, 2015 21:23
Show Gist options
  • Save 3200creative/bfbea95076ce9616cadc to your computer and use it in GitHub Desktop.
Save 3200creative/bfbea95076ce9616cadc to your computer and use it in GitHub Desktop.
Long Hand HTML5 Post Author Box
<section class="author-box" itemprop="author" itemscope="itemscope" itemtype="http://schema.org/Person">
<img alt='Relavant ALT Tag' src='IMAGE LINK' class='avatar avatar-176 photo' height='176' width='176' />
<h4 class="author-box-title">Author: <span itemprop="name">Name</span></h4>
<div class="author-box-content" itemprop="description">
<p>Sed hendrerit id augue consequat eleifend. Integer malesuada id turpis at volutpat. Nullam eleifend lacus non dui euismod ultricies. Aenean euismod quis tortor in molestie. Duis sollicitudin, nunc vitae pretium tincidunt, justo est condimentum orci, eget placerat nisl mauris non sem.</p></div>
</section>
/* Avatar
--------------------------------------------- */
.avatar {
border-radius: 50%;
float: left;
}
.author-box .avatar {
height: 88px;
width: 88px;
}
.alignleft .avatar, .author-box .avatar {
margin-right: 24px;
}
.alignright .avatar {
margin-left: 24px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment