DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Peter has posted 12 posts at DZone. View Full User Profile

Put Borders Around Web Page Elements With CSS

08.08.2006
| 5098 views |
  • submit to reddit
        Found at <a href="http://homepage.mac.com/chrispage/iblog/C42511381/E20060806095030/index.html">http://homepage.mac.com/chrispage/iblog/C42511381/E20060806095030/index.html</a>

  * { outline: 2px dotted red }
  * * { outline: 2px dotted green }
  * * * { outline: 2px dotted orange }
  * * * * { outline: 2px dotted blue }
  * * * * * { outline: 1px solid red }
  * * * * * * { outline: 1px solid green }
  * * * * * * * { outline: 1px solid orange }
  * * * * * * * * { outline: 1px solid blue }