Click to See Complete Forum and Search --> : [RESOLVED] Firefox label background


birre
05-21-2007, 04:27 AM
Hi,

In my code, i'm dynamically creating tablecells with multiple labels in it.
I gave the label's the width of the tablecell, placing text in them with a foreground and background color.

In IE6 & 7, it's acting normal, and the background color is all over the label, but in FF, the background color is only shown where the text is set, the rest is the background color of the tablecell....

Any idea's how this could be fixed?
Thanks!

Fang
05-21-2007, 04:37 AM
label {display:block;}

birre
05-21-2007, 04:41 AM
Argh... how could i miss that!

Thank you very much :D