homepage Welcome to WebmasterWorld Guest from 50.17.27.205
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderator: open

CSS Forum

    
Shorthand for borders
is it them browser incompatibilities again..
SuzyUK




msg:1218546
 5:43 pm on Jan 9, 2003 (gmt 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

 

madcat




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

Hi SuzyUK- I can't remember any problems at all with shorthand borders. What version(s) of Opera are you testing?

BlobFisk




msg:1218548
 6:01 pm on Jan 9, 2003 (gmt 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]

korkus2000




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

I thought that all CSS browsers could recognize it.

SuzyUK




msg:1218550
 7:55 pm on Jan 9, 2003 (gmt 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>

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved