The forums have permanently moved to This forum will be kept around in read-only mode for archival purposes. To learn how to continue using your existing account on the new forums, check out this thread.

Results 1 to 8 of 8

Thread: borders in href's

  1. #1

    borders in href's

    i'm using the border-bottom attribute for my href's. how do i stop it being applied to link images?

    I've tried putting an "img" class onto those specific hrefs:

    a.img {border: 0px;}
    But it doesnt work

  2. #2
    img {border:0px}
    in your css should do it.

  3. #3
    yep....thats in also...but it doesnt stop the images with links getting borders

  4. #4
    i should probably do some experiments, but how about:
    a .img{border-bottom:0px;}


  5. #5
    Registered User
    Quote Originally Posted by treatkor
    i should probably do some experiments, but how about:
    a .img{border-bottom:0px;}

    take out the period:

    a img {border-bottom:0px;}
    PHP Code:
    <zip> echo this; </zip

  6. #6
    nothing....try it yourself and see what happens...create a basic page and put this CSS in:

    a:hover {border-bottom: dotted 1px #000;}
    img {border: 0px;}
    Put an href around an image and see if you can stop the border appearing.

  7. #7
    a img{border: 0;} should work.

    Is there more code that could be interfering?

  8. #8
    only way i could figure to do it was like this:
    HTML Code:
    <style type="text/css" media="screen">
    	a:hover {
    		border-bottom: 5px dotted #000;
    	a.nobo, img {
    <a href="" class="nobo">
    	<img src="lips.jpg" /></a>
    	<br /><br /><br />
    	<img src="lips.jpg" />
    	<br /><br /><br />
    	<a href="">regular link</a>

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

Home About Meet the Moderators Advertise

 Link to Us


Copyright 1999 - 2012