No Border Rule
Feb 18th 2008Claire PoultonCSS
I have seen a LOT of people purporting that they know how to create websites with CSS. But, when I see style rules such as: img{border:none;}, I wonder where they learned CSS.
The Standards Compliant Rule for displaying NO BORDER on images
If you do NOT want a border on an element such as an image, the rule would be as follows:
img {border-style:none;}
Why “border-style” instead of “border”? Border is the short-hand for naming all border rules in one line – which consists of border-width, border-style, border-color – ie: border:1px solid #000;.
Another CSS Tip
Claire Poulton






