J
Jens Lenge
Hello world,
I am pretty sure this is a typical newbie CSS question, but I couldn't find
a solution yet.
Obviously Firefox 1.x and Internet Explorer 6.x interprete the "width"
attribute differently (don't know how other browsers do it): If you define a
div with an absolute width of 100px and a padding of 10px, then IE will take
the width as 100px total including the padding, while Firefox will make it
100px plus the padding (so 120px in total).
How the hell can I make my div have the exact same width on all browsers? It
seems to work when setting the padding to 0px, but this would require an
extra (inner) div for the text content. Isn't there a more elegant solution?
Jens
I am pretty sure this is a typical newbie CSS question, but I couldn't find
a solution yet.
Obviously Firefox 1.x and Internet Explorer 6.x interprete the "width"
attribute differently (don't know how other browsers do it): If you define a
div with an absolute width of 100px and a padding of 10px, then IE will take
the width as 100px total including the padding, while Firefox will make it
100px plus the padding (so 120px in total).
How the hell can I make my div have the exact same width on all browsers? It
seems to work when setting the padding to 0px, but this would require an
extra (inner) div for the text content. Isn't there a more elegant solution?
Jens