Forums

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

Home Forums CSS IE6 Problem: h2 class not holding background Re: IE6 Problem: h2 class not holding background

#58648
Rob MacKay
Participant

Hey :)

firstly you are using a few ID tags more than once on a single page, that’s not good practice :) IDs should be unique to the page.

But onto your H2…

I have a sneaking suspicion its actually because you are using padding and have not specified a height… a way to get round it would be to wrap the h2 in a div (I cant believe I am saying this) and then position the h2 inside the div where you need it, and set the div background to the bg you require…

If I am honest, it works in all other browsers – and if you can get away with it, I would not pander to IE6 for that.