Forum Moderators: open
i have some transparent gifs that looked fine a week ago.
now they have what seems to be a 1px black border around them...
ususally it looked white, which i have always noticed... that white 1px extra line around transparent gifs...
now its black?
anyone notice this or have it happen to them?
So if you're using XHTML without the border="0" attribute and you've done something to trigger Quirks mode - an invalid doctype, or something else that causes validation to fail - the border will likely automagically appear uninvited.
Solutions are to (illegally? lol) add the border attribute, alter the doctype to an HTML 4.01 that does support border, (and get rid of all the funny />'s) or validate the document so it renders in Standards Compliance Mode.
Alternatively and untested, you might be able to just add
img { border:none: }
to your styles; don't know that this will work because if you're in Quirks mode it may fail.
As rocknbill said: make fully sure it validates (but I'd say: don't worry about xhtml, but that's a discussion on it's own).
Also make sure to hide all legacy IE fixes, hacks and workarounds from IE8, it will not need them (conditional comments rule)