Home › Forums › CSS › ? BG image on headings, when image is taller than headings? › Re: ? BG image on headings, when image is taller than headings?
September 18, 2009 at 9:24 pm
#64390
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 */
}
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 */
}