English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I would like an image on my web page to be a hyperlink, but it automatically puts a border round the image - how can I prevent this? I am using stylesheets.

2007-07-17 06:21:37 · 4 answers · asked by jamie d 1 in Computers & Internet Programming & Design

4 answers

The easiest way is to do this in the HTML part
Picture of me.

If you put it in the style sheet the style has to have an
a img attribute which seems to only work with some browswers.. the inline style will work with all browsers.

Hope that helps.

2007-07-17 06:32:38 · answer #1 · answered by Tracy L 7 · 0 0

You can prevent this in all of your pages by simply adding the following line to your CSS:
a img { border:none }

You're telling the browser to remove the borders from all images inside anchors.

Hope this helps.

2007-07-17 14:38:31 · answer #2 · answered by Smutty 6 · 0 0

use border="0" in the bit =)

2007-07-17 13:25:00 · answer #3 · answered by junglejungle 7 · 1 0

this website is a great tool for website bulders and will answer all such questions - http://www.html.net/tutorials/html/lesson9.asp
that's to the imagges page

2007-07-17 13:32:05 · answer #4 · answered by The Book Garden 4 · 0 1

fedest.com, questions and answers