Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

2. Hacking with Style > Hack 21. Make Borders Interesting Again, with Border Tr...

Hack 21. Make Borders Interesting Again, with Border Treatments

CSS3 makes boring borders exciting. Forget corner images and shadow “shivs.” CSS3 provides a number of new treatments that bring your borders back to life.

The border is one of the most frequently used properties in CSS. It’s applicable to any visual HTML element and has been used in various ways to draw your eye to content on a page. Borders have traditionally been limited in their presentation. With CSS 2.1, we were limited to the use of solid colors, straight corners, and limited styles (solids, dots, and dashes only).

CSS3 brings a number of new features to modernize borders. The border radius, box shadow, and border image are the main enhancements.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint