www.webdeveloper.com
Results 1 to 9 of 9

Thread: image as a link with no border

  1. #1
    Join Date
    Sep 2004
    Posts
    219

    image as a link with no border

    Hi guys

    example

    <a href> image </a>

    and have the image with no border?? i do not want the blue/purple default border.

    i tried giveing it a class with no border etc but could not get working

    is this possible and how?

    thanx!

  2. #2
    Join Date
    May 2004
    Location
    Manhattan NY
    Posts
    6,028
    border="0" in the tag

  3. #3
    Join Date
    Sep 2004
    Posts
    219
    thanx man!

  4. #4
    Join Date
    Jul 2004
    Location
    Sendai, Japan
    Posts
    1,273
    Better :
    Code:
    a img {
    border:0;
    }

  5. #5
    Join Date
    Sep 2004
    Posts
    219
    thanx BonRouge,

    will try that out too.

    what would the class be in my xhtml?

    <a href ..... class="img"> ???

    something like that?? sorry little rusty

  6. #6
    Join Date
    Jul 2004
    Location
    Sendai, Japan
    Posts
    1,273
    No. That's all. 'img' is the selector for images. We use 'p' for paragraphs, 'div' for divisions and 'img' for images.

  7. #7
    Join Date
    Sep 2004
    Posts
    219
    ok i see,

    yeah i knew:

    'img' is the selector for images. We use 'p' for paragraphs, 'div' for divisions and 'img' for images
    alreay.

    ok, so.. this bit of code will give all images in a a href tag no borders?

    is that correct?

    a img {
    border:0;
    }


    Cheers!

  8. #8
    Join Date
    Jul 2004
    Location
    Sendai, Japan
    Posts
    1,273

  9. #9
    Join Date
    Sep 2004
    Posts
    219
    cool thanx for that

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles