Welcome to WebmasterWorld Guest from 54.166.54.215

Forum Moderators: not2easy

Shorthand for borders

is it them browser incompatibilities again..

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

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



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)

WebmasterWorld Senior Member 10+ Year Member



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)

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



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)

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



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

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



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>

 

Featured Threads

Hot Threads This Week

Hot Threads This Month