SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Zealot akohl's Avatar
    Join Date
    May 2001
    Location
    Israel
    Posts
    184
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    How can I remove the border from link images?

    How can I remove the border from link images?
    I have an annoying reddish border around my next/previous link images.
    How can I remove them?

    Thanks in advance!

    I've got the following link on a page;
    <td><a href="link.htm><IMG SRC='../images/fingeron.gif' ALT='next'></a></td>

    The style sheet looks like this;

    A:link
    {
    COLOR: mediumblue;
    TEXT-DECORATION: none
    }
    A:visited
    {
    COLOR: darkblue;
    TEXT-DECORATION: none
    }
    A:active
    {
    COLOR: royalblue;
    TEXT-DECORATION: underline
    }

  2. #2
    Non-Member Kelar's Avatar
    Join Date
    Jul 2001
    Location
    Holland
    Posts
    79
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Implement this in your image-tag: border="0". This should get rid of your borders.

  3. #3
    SitePoint Zealot akohl's Avatar
    Join Date
    May 2001
    Location
    Israel
    Posts
    184
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Thanks

    Thanks a lot. That was sure fast!

  4. #4
    SitePoint Guru
    Join Date
    Sep 1999
    Location
    Singapore
    Posts
    854
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Or you could do something like:

    Code:
    img {border: 0px}
    The advantage this has over the border="0" attribute is future-proofing, the disadvantage of course is this does not work with older browsers.

  5. #5
    SitePoint Wizard
    Join Date
    Jul 1999
    Location
    Chicago
    Posts
    2,629
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Duckie's example would remove the border from every image on your site. If you only want to remove it from a few, add this to your IMG tag:

    style="border:0px" border="0"

    You probably should use both the style and the border attributes so that it'll work for old and future browsers...

  6. #6
    SitePoint Guru
    Join Date
    Sep 1999
    Location
    Singapore
    Posts
    854
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by qslack
    Duckie's example would remove the border from every image on your site.
    Oh...yeah, something I've neglected to mention, but then I haven't met an image whose border I did not want to remove.


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
  •