Sep 22

Styling Design Elements: 5 Beautiful Post Headings

We will start a new set of posts that will demonstrate different way of creating and styling various design elements. Today our focus will be on “Post Headings“, how to style and markup this important block that comes before any post.

Usually “Post Headings” consists of 5 essential elements:

  • 1- Post Title
  • 2- Publishing Date
  • 3- Author Name
  • 4- Post Category ot Tags
  • 5- Number of Comments

What we are going to do is play around with these 5 puzzle pieces to get 5 different and pretty “Post Headings” for your blog posts. All the headings mentioned here actually need only couple of lines of CSS.

Take a look at the demo

Artistic Post Heading

Demo4 in Styling Design Elements: 5 Beautiful Post Headings

The HTML will look like this:

<div id="block4">
    <div class="title-wrap">
    <h1><a href="#" >7 Steps for Systematizing The Design & Build Process%u2026</a></h1>
    <h5><span>Sep 21, 2009</span> | Comments <a href="3" >67</a> | by Cameron</h5>
    </div>
</div>

and the CSS:

#block4 {
    background:url(images/bg.jpg);
	border:3px solid #542437;
	font-family:Georgia,"Times New Roman",Times,serif;
        margin:20px 0px;
	padding:20px;
	z-index:5;
}
#block4 h1 {
	font-size:190%;
	letter-spacing:0px;
	line-height:42px;
	margin:0 0 10px;
	text-align:center;
	text-transform:uppercase;
}

#block4 h1 a{
	color:#542437
}

#block4 h5 a{
	color:#542437
}

#block4 h5 {
	border-bottom:1px solid #4C4C4C;
	border-top:1px solid #4C4C4C;
	color:#6A6969;
	font-size:13px;
	font-weight:100;
	letter-spacing:3px;
	line-height:21px;
	padding:5px 0;
	text-transform:uppercase;
}
#block4 .title-wrap{
	background:url(images/trans_bg.png);
	padding:10px;
	border:1px dashed #542437;
}

Traditional Post Heading

Demo1 in Styling Design Elements: 5 Beautiful Post Headings

The HTML will look like this:

<div id="block1">
        <h2>Simplicity in Good Web Design</h2>
        <p>
            by <em> <a title="" href="http://www.noupe.com" >Noura Yehia</a> |
            <a href="" class="comments">Comments</a> |
            <a href="" class="cat">Category Name</a>|
            <a href="">Sep 10</a></em>
        </p>
</div>

and the CSS:

#block1 {
	background:#D5E4E8 none repeat scroll 0 0;
	border:3px solid #B5CAD0;
	margin:20px 0px;
	padding:20px;
}
#block1 h2{
	font-family:Georgia,"Times New Roman",Times,serif;
	font-weight:normal;
	text-shadow:0 0 1px #000;
	color:#444444;
	font-size:2em;
	padding:2px 0 0;
	text-transform:capitalize;
	line-height:1.2em;
	margin:0 0 10px;
}
#block1 p em {
	color:#999999;
	font-family:Georgia,"Times New Roman",Times,serif;
	font-style:italic;
	letter-spacing:0.2em;
	margin:10px 0 20px;
	text-transform:none;
	padding-bottom:10px;
}
#block1 a{
color: #F50077;
text-decoration:none;
}
#block1 a:hover{
text-decoration:underline
}

#block1 .comments{
	background:url(images/comments.png) no-repeat;
	padding:0 0 0 25px
}
#block1 .cat{
	background:url(images/folder.png) no-repeat;
	padding:0 0 5px 30px;
}

Lines Post Heading

Demo2 in Styling Design Elements: 5 Beautiful Post Headings

The HTML will look like this:

<div id="block2">
<div class="date-stamp">
				<div class="day">4th</div>
				<div class="month">Mar/09</div>
			</div>

<h2>7 Rules for Mixing Multiple Fonts in Good Web Design</h2>
<p class="details"><span class="type">Full-Time</span> <em>at</em> Magnet Media, Inc. (ZIO Pro) <em>(Manhattan, NY)</em></p>
</div>

and the CSS:

#block2{
	border:3px solid #A8635A;
	color:#fff;
	font-family:Georgia,"Times New Roman",Times,serif;
	margin:20px 0px;
	padding:20px;
}

#block2 h2{
	background:#ECD078;
	color:#542437;
	font-size:160%;
	font-style:normal;
	font-weight:bold;
	letter-spacing:-1px;
	line-height:115%;
	margin-top:5px;
	padding:0;
}
#block2 p.details{
	background:#542437
}
#block2 .date-stamp {
	background:#FFF;
	border:1px solid #ECD078;
	color:#542437;
	float:left;
	font-style:italic;
	height:62px;
	margin:0 10px;
	overflow:hidden;
	padding:0;
	width:72px;
}
#block2 .day {
	font-size:22px;
	font-weight:normal;
	padding:7px 0 0;
	text-align:center;
}
#block2 .month {
	font-size:11px;
	padding:2px 0 0;
	text-align:center;
	text-transform:uppercase;
}

Fancy Post Heading

Demo3 in Styling Design Elements: 5 Beautiful Post Headings

The HTML will look like this:

<div id="block3">
    <p class="date">Sep <span>10</span></p>
    <h1>CSS: Design Out Of The Box</h1>
    <p class="tags"><span>Tagged in:</span>
    <a href="#" >CSS</a>,
    <a href="#">Design Trends</a>,
     <a href="#" >inspiration</a></p>
</div>

and the CSS:

#block3 {
	background:#92FF2C;
	border:3px solid #F50077;
	font-family:Georgia,"Times New Roman",Times,serif;
	margin:20px 0px;
	padding:20px;
	position:relative;
	z-index:5;
}

#block3 .date {
	background:#F50077 none repeat scroll 0 0;
	color:#92FF2C;
	font-size:130%;
	height:40px;
	left:-55px;
	line-height:30%;
	padding:20px 0 5px;
	position:absolute;
	text-align:center;
	text-transform:uppercase;
	top:0;
	width:54px;
}
#block3 .date span {
	display:block;
	font-size:170%;
	font-style:italic;
	font-variant:normal;
	letter-spacing:-1px;
	line-height:90%;
}
#block3 .tags {
	text-transform:capitalize;
}
#block3 .tags a{
	color:#F50077;
	font-weight:bold;
}
#block3 h1, h2 {
	color:#2B2B2B;
	font-size:190%;
	font-weight:bold;
	letter-spacing:-1px;
	line-height:100%;
	margin-left:-2px;
	padding:0 0 8px;
}

Colorful Post Heading

Demo5 in Styling Design Elements: 5 Beautiful Post Headings

The HTML will look like this:

<div id="block5">
    <div class="date_block">
        <div class="day">4th/Mar</div>
        <div class="comments">10 Comments</div>
    </div>
    <div style="padding: 10px;">
        <h2><a href="#">Creating a Great Portfolio Site</a></h2>
        <span class="author">by <a href="#"><span>Noura Yehia</span></a>, Posted in <a href="#">Tips and Tricks</a></span>
    </div>
</div>

and the CSS:

#block5 {
	background:#27453A;
	border:3px solid #D95B43;
	color:#ECD078;
	font-family:Georgia,"Times New Roman",Times,serif;
	margin:20px 0px;
	padding:20px;
}

#block5 .date_block {
	border-left:1px solid #D95B43;
	display:block;
	float:right;
	font-style:italic;
	height:50px;
	margin:0 10px;
	padding:10px 20px;
	width:90px;
}

#block5 .day {
	font-size:22px;
	font-weight:normal;
	padding:0 0 20px;
	text-align:center;
}
#block5 .comments {
	background:transparent url(images/comments.png) no-repeat scroll 0 5px;
	font-size:11px;
	padding:2px 0 0 20px;
	text-align:center;
}

#block5 h2{
	border-bottom:1px solid #D95B43;
	font-size:24px;
	font-weight:normal;
	letter-spacing:-1px;
	line-height:26px;
}
#block5 h2 a {
	border:medium none;
	color:#468E76;
	text-decoration:none;
}
#block5 .author a {
	color:#D95B43;
	font-weight:bold;
	text-decoration:none;
}

Tags: , ,

51 Responses, Add Comment +

  1. Adam 22 September 2009

    Nice, nice, very very nice :-)

  2. Dave Sparks 22 September 2009

    Nice article, looks like it could be a good series of them.

  3. Park Rice 22 September 2009

    Wow this post didn’t suck!

  4. Yasser 22 September 2009

    I liked this article :)

    We are waiting for the rest of this awesome set of posts .

  5. affordable website designers 22 September 2009

    Interesting selection. May become useful. Not too sure the colourful heading it really that colourful though. Thanks

  6. Cameron Baney 22 September 2009

    This is a great resource! I love how you not only showed good posting headings for inspiration, but also the markup and CSS to make them.

  7. joyoge bookmark 22 September 2009

    nice post headings, thanks for share..

  8. SE7EN 22 September 2009

    I like fancy and colorful style in the demo.

  9. Elcodigodebarras 23 September 2009

    As always an amazing and beauty post… and your web restyling is veery nice too; is an certainly target.

  10. Lam Nguyen 23 September 2009

    That’s a good resources list. I love to make up the post headline because it’s the first thing that users look first! Thanks for sharing.

  11. bogdan 23 September 2009

    wow :) I like it a lot !!!

  12. fushigi 23 September 2009

    the others are great but the fancy one hurts my eyes :(

  13. accessko 23 September 2009

    Thx for this tutorial. It looks great. Great CSS markup also.

  14. Ivan Miši? 23 September 2009

    Great post headings, thx for share

  15. Chris Farrugia 23 September 2009

    Those are great! I really like how you put the code in with your tutorials. Too many sites simply showcase the work but leave out the “how-to” part. In practice, wouldn’t you want a bit of line-height on the in the traditional post one? A lot of blogs are putting posts in multiple categories which I think might cause a line break. Just my $0.02. Great post!

  16. Andy Feliciotti 24 September 2009

    These seem a little outdated… I wish there were more of them though

  17. baloot 24 September 2009

    i have been regular reader for noupe.com. frankly speaking, i love this noupe.com new blog design. :)

    and post title heading above are really beautiful. i love all 3 from bottom..

    cheers from malaysian blogger

  18. Prowl 24 September 2009

    Great post headings, thx for share

  19. Kala 24 September 2009

    I love the approach to this post — it’s perfect seeing the CSS and HTML so we can get an underlying understanding of the design element.

    All I can say is, more posts like this please!

  20. Web 2.0 24 September 2009

    That looks useful, thanks for sharing…

  21. Ahmed 27 September 2009

    Thanks for the good collection

  22. Md. Rayhan Chowdhury 27 September 2009

    This is a nice post…:)

  23. Kate 5 October 2009

    Oh, useful! Especially css styles. Good for practice, thanks!

  24. ghprod 6 October 2009

    artistic post heading … nice and look elegant …

    thnx for collection :)

  25. vkwave 11 October 2009

    nice one :)

  26. mathheadinc 15 October 2009

    This is exactly the kind of help this novice designer needs. Keep up the good work!

  27. wptidbits 18 October 2009

    Yes. One of the great element in a website is the real content of the site. And inside it is the post attention grabber which is the post headings. I guess this kind of post should appear frequently as to help us who is not really a coding savvy. Kind of copy and paste and modify. Not to suggest plagiarism but to improve through testings.

  28. driver53 23 October 2009

    Iglesias tells 770KKOB that there was never any performance issues. ,

  29. BEBEN 6 November 2009

    i love Kala :D…eh…i love this post thank’s

  30. Don Sanders 27 December 2009

    Holy Cow. That actually kind of made sense.

Trackbacks

Leave a Reply

Comments are moderated – and rel="nofollow" is in use. Please no link dropping, no keywords or domains as names; do not spam, and do not advertise!