Removing Image Borders with CSS
by Paul Flyer
The XHTML 1.0 Strict standard does not support the use of “border” inside of an img tag.
Typically, border was set to zero in order to avoid the lovely link border that would surround an image set as a hyperlink.
In CSS, the border can be removed with the following code:
img {
border: 0px none;
}
[tags]css, img, border, xhtml[/tags]
02.15.2006 @ 3:40 PM — Filed under:
Be sure to review our list of recommended web tools.



