Submit a CSS related link →

Posh CSS

For the modern day web designer.

Placing a CSS background image horizontally right on an h2 using a span element

# Linked to 8 May 2009, 10:30 in by Sam Brown

I believe this is a very useful tip for people just starting out. It’s about how you add a background image to a heading 2 element and have it perfectly aligned on the right side of the text while keeping the default block element behavior.

Read more at veerle.duoh.com →

Sam Brown

Sam Brown is a freelance interface designer and web standards developer based in Edinburgh, Scotland. Sam's work can be seen at Massive Blue, blogs at Sam Brown and is on Twitter at @sambrown.

No thoughts were recorded on this post.