Placing a CSS background image horizontally right on an h2 using a span element
# Linked to 8 May 2009, 02:30 in Tips 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.
Tweet Subscribe to the RSS Feed →