I've come up with a style that works in IE5.5 and Netscape 6 but the borders
and padding do not appear in IE5.0. To add insult to injury, Netscape 4 is
able to display the padding and a border (although the wrong amount of
padding and the border is the wrong colour). If I apply my style to div or p
it shows as a "button" but the full width of the page, which isn't going to
work. span has the same problem as the a tag.
Any suggestions where I've gone wrong (assuming it is me and not just IE5),
and how to get it working in IE5, IE5.5 and Netscape 6 (I don't need to
support NN4)?
Thanks
Colin
A.button {text-decoration: none;
border-color: #cccccc #666666 #666666 #cccccc;
border-style: solid;
border-top-width: thin;
border-right-width: thin;
border-bottom-width: thin;
border-left-width: thin;
background-color: #9c9c9c;
padding-top: 2pt;
padding-right: 4pt;
padding-bottom: 2pt;
padding-left: 4pt;}
A.button:link {color: white}
A.button:visited {color: white}
A.button:active {color: yellow}
A.button:hover {color: red}
<button ...><img ...></button>
--
The spirit of resistance to government is so valuable on certain occasions
that I wish it to be always kept alive. It will often be exercised when
wrong, but better so than not to be exercised at all. -Thomas Jefferson
=-=-=
Steve
-=-=-
"Colin Young" <x...@nospam.com> wrote in message
news:#ZU5ExtFBHA.1392@tkmsftngp05...
"Colin Young" <x...@nospam.com> wrote...
Colin
"Rowland Shaw" <spamf...@anotherpointless.org> wrote in message
news:e7hS3EOGBHA.1344@tkmsftngp03...
From the testing I did, I was getting left and right borders before I added
line hieght -- have you tried border-color: lime; border-width: 50px; to
make it a littel easier to see what is being drawn?
"Colin Young" <x...@nospam.com> wrote...
> That's not working for IE5 either. Both the padding and the border are
> failing to appear. But thanks for pointing out the 'outset' style. I knew
it
> existed but for some reason my brain refused to make the connection
there...
>
>
> "Rowland Shaw" <spamf...@anotherpointless.org> wrote...