Linked Image

liunx

Guest
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.<br />
<br />
TIA<!--content-->You can put in the head of your document<br />
<br />
<style type="text/css"><br />
img { border: 0 }<br />
</style><br />
<br />
to remove the border on all linked images in a page.<!--content--><img src=http://www.webdeveloper.com/forum/archive/index.php/"image.gif" border="0"><!--content--><img src=http://www.webdeveloper.com/forum/archive/index.php/"image.gif" border="0"><br />
<br />
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.<!--content--><style type="text/css "> <br />
img { border: 0 } <br />
</style> <br />
<br />
What is css<!--content-->Cascading Style Sheets (CSS) is a simple mechanism for adding style (e.g. fonts, colors, spacing) to Web documents.<br />
<br />
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.<br />
<br />
HTML (<!-- m --><a class="postlink" href="http://www.w3.org/TR/html401/">http://www.w3.org/TR/html401/</a><!-- m -->)<br />
CSS (<!-- m --><a class="postlink" href="http://www.w3.org/TR/REC-CSS2/">http://www.w3.org/TR/REC-CSS2/</a><!-- m -->)<!--content-->
 
Back
Top