Welcome to WebmasterWorld Guest from 54.196.232.162

Forum Moderators: not2easy

Message Too Old, No Replies

Shorthand for borders

is it them browser incompatibilities again..

     
5:43 pm on Jan 9, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member suzyuk is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Oct 1, 2002
posts:5199
votes: 0


I often see the shortened code for borders i.e.

border: 1px solid black;

as opposed to:
border-width: 1px;
border-style: solid;
border-color: black;

I have always tended to use the full version of this as I've found (especially Opera) doesn't like the shortened version..is this another "Only IE Likes it" thing?

Suzy

6:01 pm on Jan 9, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 15, 2002
posts:971
votes: 0


Hi SuzyUK- I can't remember any problems at all with shorthand borders. What version(s) of Opera are you testing?
6:01 pm on Jan 9, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member blobfisk is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Feb 25, 2002
posts:3185
votes: 0


As far as I know, the border shorthand is understood by all the major browsers, even Netscape 4.7 (just tested it to make sure!) renders it fine.

<edit>Confirmed NS4.7 test</edit>

[edited by: BlobFisk at 6:04 pm (utc) on Jan. 9, 2003]

6:02 pm on Jan 9, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member korkus2000 is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 20, 2002
posts:3732
votes: 0


I thought that all CSS browsers could recognize it.
7:55 pm on Jan 9, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member suzyuk is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Oct 1, 2002
posts:5199
votes: 0


Hey guys thanks

you know what, I was using it without the px..IE recognised it but no-one else as soon as I put in the px it was OK again..

At least asking the question and getting your answers made me look again..now how much code bloat can I get rid of...:)

Thanks
Suzy

<added> just checked and that's the code that FrontPage gives you (without the px), no wonder .....do you suppose this is the last of my bad habits learnt from that (nice polite word) ....no neither do I ;)</added>