Click to See Complete Forum and Search --> : Linked Image


swatpup32
12-06-2002, 08:11 AM
For some reason anytime I link a picture to a page I get a blue border around it. Does anyone know how I can remove it.

TIA

jeffmott
12-06-2002, 08:29 AM
You can put in the head of your document

<style type="text/css">
img { border: 0 }
</style>

to remove the border on all linked images in a page.

Zach Elfers
12-06-2002, 12:07 PM
<img src="image.gif" border="0">

jeffmott
12-06-2002, 12:26 PM
<img src="image.gif" border="0">

This way you'll have to add border=0 to *every* linked image element rather than a single style declaration. The border attribute has also been deprecated and should not be used.

swatpup32
12-06-2002, 12:37 PM
<style type="text/css ">
img { border: 0 }
</style>

What is css

jeffmott
12-06-2002, 01:20 PM
Cascading Style Sheets (CSS) is a simple mechanism for adding style (e.g. fonts, colors, spacing) to Web documents.

Pages are much more accessible and maintainable when the structure and the visual rendering of the document is kept separate. HTML to define the structure (any HTML style elements have been deprecated) and style sheets to define the visual rendering.

HTML (http://www.w3.org/TR/html401/)
CSS (http://www.w3.org/TR/REC-CSS2/)