Results 1 to 7 of 7

Thread: making image as a link, problem.

  1. #1
    Join Date
    Mar 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default making image as a link, problem.

    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:

    the Up Arrow image is linked to E.g. http : / / www . yahoo . com .
    the down Arrow image is orignal one.
    thankyou guys

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    You wanna add to your image: border="0".
    Jeremy | jfein.net

  3. #3
    Join Date
    Mar 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.

  4. #4
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,920
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default

    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...
    Code:
     
    a img {
        border:0;
     }
    
    ...which will remove the blue border from all linked images.

    coothead

  5. #5
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Isn't that what I just provided except in style version?
    Jeremy | jfein.net

  6. #6
    Join Date
    Mar 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thankyou sooooooooo much guyzzzzz.
    its solved. thanks once again..

  7. #7
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Quote Originally Posted by Nile View Post
    Isn't that what I just provided except in style version?
    No, it's not.

    Quote Originally Posted by coothead View Post
    The border attribute for images is deprecated and should be avoided.
    Instead use CSS to set the border values.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •