Archive for October, 2007
Apply a custom border to an image
Wednesday, October 3rd, 2007
In the age where we’re now separating presentation from structure, applying a border with X/HTML’s <img> tag is becoming obsolete as well as improper. But some browsers will automatically apply a border attribute, especially if it’s within a hyperlink. Normally, we’d do:
<img src="path/to/image/file.jpg" border="0" />
to remove this border. But, as I said earlier, this is becoming obsolete, and when validation becomes an issue, so does the border.
(more…)
Tags: css, xhtml
Posted in Tutorials | No Comments »