/ Published in: CSS

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
Here’s a tip for catching unsized images during development. Add this CSS rule somewhere in your stylesheet: img:not([width]):not([height]) { border: 2px solid red !important; } Then any images without width and height attributes will be drawn with a red border so they’re easy to spot. Found via 37signals
URL: http://37signals.com/svn/posts/2979-css-tip-spot-unsized-images-during-development
Comments
