1 reply [Last post]
Satan
Offline
Regular
Last seen: 18 years 12 weeks ago
Timezone: GMT-5
Joined: 2004-09-07
Posts: 14
Points: 0

Hi guys,

I've seen a few ways to set no border, here are two:

border: none;
border: 0;

But the reference at w3schools doesn't list those techniques, only the shorthand method:

border: width,style,color;

Is 'none' the same as '0' ? Then what is a '0' color ? I like to be exact when I code. Thanks.

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 2 weeks 14 hours ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5344
Points: 2965

Setting No Border ?

Hi Satan,
None, is the default value for borders, which means "no border".
0 is like setting the width to 0 or not showing a border.
So you should get the same result with either value.

Hope that helps