Log in

View Full Version : making image as a link, problem.



ever-fresh
03-16-2008, 04:07 PM
when i try to make an image as a link. it shows Blue borders around image...
i have .css file and .html page.
what to delete from CSS or edit ?
i am only working with images to make links.
see this image:
http://img441.imageshack.us/img441/286/39958385og9.gif
the Up Arrow image is linked to E.g. http : / / www . yahoo . com .
the down Arrow image is orignal one.
thankyou guys :)

Nile
03-16-2008, 04:08 PM
You wanna add to your image: border="0".

ever-fresh
03-16-2008, 04:12 PM
i am working with macromedia dreamviewer.
i am not giving any broder to image.
just puting image to link to Target page.
see this page., http://www.apna-network.com/mainpages , at the left menu bar ... The arrow is Ok. becoz its not linked anywhere.
but when i give this arrow image as a link , it will show blue borders around the image ....
thanks.

coothead
03-16-2008, 04:21 PM
Hi there ever-fresh,

and a warm welcome to these forums. ;)

The border attribute for images is deprecated and should be avoided.
Instead use CSS to set the border values.
In your case use...


a img {
border:0;
}

...which will remove the blue border from all linked images.

coothead

Nile
03-16-2008, 04:24 PM
Isn't that what I just provided except in style version?

ever-fresh
03-16-2008, 04:47 PM
thankyou sooooooooo much guyzzzzz.
its solved. thanks once again.. :)

Medyman
03-16-2008, 07:21 PM
Isn't that what I just provided except in style version?

No, it's not.


The border attribute for images is deprecated and should be avoided.
Instead use CSS to set the border values.