View Single Post
Old 03-17-2009, 06:07 PM  
Ozarkz
So Fucking Banned
 
Join Date: Jan 2009
Posts: 2,377
Quote:
Originally Posted by Killswitch View Post
I noticed in a few designs, making elements have rounded corners on say an h1 tag instead of square corners like adding borders do. They style the h1 tag to have a rounded corner image infront of the content, and then style a span tag to have a rounded corner image behind the content and then just do <h1><span>something</span></h1>.

Tip:
Use the :before and :after pseudo-elements on the h1 tag with the content attribute to do it all in 1 tag.

http://www.quirksmode.org/css/content.html

Read that page, and figure it out, will make much cleaner code and less markup in the long run.
I dont get it can you elaborate a bit more? Got an example other than that link?
Ozarkz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote