No Border Rule

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

Share and Enjoy:
  • Twitter
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Yahoo! Bookmarks
  • Google Bookmarks
  • Live
  • Slashdot
  • StumbleUpon
  • Technorati
  • TwitThis
  • YahooMyWeb
  • Propeller
  • BlinkList
  • Blue Dot
  • Fleck
  • LinkedIn
  • Yigg
  • blogmarks
  • De.lirio.us
  • Linkter
  • MySpace
  • Yahoo! Buzz

Leave a Reply