Published in: CSS
URL: http://homepage.mac.com/chrispage/iblog/C42511381/E20060806095030/index.html
Great little debuging snippet found while browsing. The code adds different coloured borders to the assets depending on its level. Leave commented out if not needed.
* { 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 }
Comments
Subscribe to comments
You need to login to post a comment.

That's so clever - never would have thought of that. I love it.
1man, thank you.
Very nice! I threw some "important"s onto mine to make sure they show up.
5* thnks
this is very useful... thanks for the tip!
awesome! thanks
That's amazingly simple! The same great as simple!
Too much noise... Firefox + FireBug much better
*:hover { outline: 2px dotted red; } * *:hover { outline: 2px dotted green; } * * *:hover { outline: 2px dotted orange; } * * * *:hover { outline: 2px dotted blue; } * * * * *:hover { outline: 1px solid red; } * * * * * *:hover { outline: 1px solid green; } * * * * * * *:hover { outline: 1px solid orange; } * * * * * * * *:hover { outline: 1px solid blue; }
This will throw off your layout and make it display out of whack, just use Firebug.
Uses outline not border so won't effect the layout. And yes you can use firebug to do it, among many other tools.