John Hesch

Echoing my thoughts and interests

I found this handy little snippet of CSS that puts a colored outline around the border of every element in an HTML/XHTML document, helping you to visualize the structure. Thanks Programming is Hard.

CSS:
  1.  
  2. * { outline: 2px dotted red }
  3. * * { outline: 2px dotted green }
  4. * * * { outline: 2px dotted orange }
  5. * * * * { outline: 2px dotted blue }
  6. * * * * * { outline: 1px solid red }
  7. * * * * * * { outline: 1px solid green }
  8. * * * * * * * { outline: 1px solid orange }
  9. * * * * * * * * { outline: 1px solid blue }
  10.  

Comments are closed.

Graytone | Design: Tenant Report