Click to See Complete Forum and Search --> : [Resolved] need help with css on mozilla...


bad76
03-27-2004, 11:11 AM
Hi all, on Mozilla-Firebird this css don't work (or at least work differently as ie...)

a.mylink:link{
color: #005000;
background-color:#dbecd8;
width: 100px;
height: 20px;
border: solid thin red;
}
Border is for debug purpose...

On ie I can see an anchor with a long red border of 100 pixel. On mozilla the border shrink to text width.

In mozilla's buglist there isn't anything...
Any one know what is wrong ?!?

bye bye

mogster
03-27-2004, 01:02 PM
If it is a link, why do you specify the height as height:20px, and not as font-size?
Mozilla is picky about height-statements, height on <select> is also misintrepreted or not supported.

knutm :-)

pyro
03-28-2004, 03:42 PM
By default an a element is not a block level element. Add display: block; to your CSS definitions, and it should work better.

bad76
03-30-2004, 06:57 AM
Thanks! This work fine!

bye bye

pyro
03-30-2004, 08:48 AM
Sure thing. :)