Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS ? BG image on headings, when image is taller than headings? Re: ? BG image on headings, when image is taller than headings?

#64390
TheDoc
Member

Completely untested, just off the top of my head, try this:

Code:
#content h2 {
background: url(images/your-background-image.jpg) no-repeat #999999; /* don’t put 999999, put the color that is in the bg of the image */
padding-top: ##px; /* this will push the text down from the top */
padding-left: ##px; /* this will push the text right from the left */
min-height: ##px; /* height of the image */
height: auto !important; /* ie6 */
height: ##px; /* height of image, also for ie6 */
}