Most Helpful
Most Helpful
Here's a pretty easy snippet that places a a colored outline around the border of every element in your CSS code. It makes it easier to debug your code by adding visual representation of errors.
Source
- * { 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 }
Source
The Web Developer Firefox add-on is great for this. It allows to to outline various elements without editing your CSS.
I second the use of Firebug for firefox addons.mozilla.org If you use a Mac CSSEdit is a good mac app for this
'Inspect Element' from context menu in Safari need to check 'Show Develop menu in menu bar' option in preferences.
Im all about web developer and firebug. The firebug console picks up logs as well so if you are running mashlets you can get the readout right in Firebug, makes it easy to find where issues are in web apps.