This is mostly here as a note to myself (Google is my outboard brain), but if you maintain a website, it might be helpful…

Should you dare to specify inline CSS style in a <span> tag, be sure you separate the property name and the value with a colon, not an equal sign. Especially tricky if you copy width/height from an image tag.

While saner browsers opt to treat the attribute as not specified (since it’s not well formed), Firefox treats the whole <span> definition as erroneous. Result - my beautiful pictures didn’t show up in Firefox. (Both Safari and IE did the right thing and just formatted as if I hadn’t specified a width/height)

Every day I work with it, I love CSS more…

Leave a reply