_com
07-07-2005, 12:23 PM
is there anyway to prevent
eg <img src="decorativeimage.jpg" height="20" width="40" alt=""">
from displaying in old browsers
I know backgrounds on divs do not display since eg IE3 cannot read id (or class ??) so these images are hidden from old non CSS browsers.
But a <img> to be hidden from old browsers is a whole lot more difficult
only possibility to set the height and width attributes to zero and override these in CSS with their real dimensions
eg
myImg.img {height: 20px !important; width: 40px !important;}
<img class="myImg" src="decorativeimage.jpg" height="0" width="0" alt=""">
eg <img src="decorativeimage.jpg" height="20" width="40" alt=""">
from displaying in old browsers
I know backgrounds on divs do not display since eg IE3 cannot read id (or class ??) so these images are hidden from old non CSS browsers.
But a <img> to be hidden from old browsers is a whole lot more difficult
only possibility to set the height and width attributes to zero and override these in CSS with their real dimensions
eg
myImg.img {height: 20px !important; width: 40px !important;}
<img class="myImg" src="decorativeimage.jpg" height="0" width="0" alt=""">