August 10th, 4:25am 0 comments

Renaming and Extending Easy-Clearing, AKA Clearfix

When positioniseverything.net posted an article about clearfix technique, it didn't take much for web developers and designers to start adopting it. Lately, Dan Cederholm has been talking about renaming the class clearfix to group, which semantically speaking makes a lot more sense. So, let's go ahead and rename the class.

New Easy-Clearing

Using conditional comments, let's add the proper code to handle IE 6 and IE 7 (IE8 supports the :after pseudo-elements; no extra code is necessary).

Read more …

Posted
April 27th, 3:29am 0 comments

Create Date Badge with Wordpress and CSS

This tutorial will walk you through creating date badges with Wordpress and CSS.

Media_httponcemadecom_xgoch

Let's start of by adding the necessary markup to render the appropriate date format. Create a DIV element with a class of "entryDate" and three children SPANs with respective classes "postMoth", "postDay", and "postYear".
Add the PHP code to get the post date from the database as shown bellow. For more PHP date format go to http://us.php.net/date

Markup

Now let's add styles to make it look pretty.

Read more …

Posted