Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Jul 2005
    Posts
    29
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Image based a tags - removing a tag defaults

    Afternoon All

    This seems like a really basic question, but I've checked books and web sites and haven't solved it for myself.

    On the following page, all 3 'feature' images will have links attached to them. I've added a link to the 'balloon image' and now the image has a red border around it.

    http://www.ja.net/temp/Project/design.html

    I've added border = 0 to nearly every class I could think of to try and remove the border, but it hasn't made a difference.

    I also added a p tag and tried to format that, but it didn't work.

    Would anyone know how to remove the border using css?

    Thanks very much for any help

    durdledoor

  • #2
    New Coder
    Join Date
    Nov 2006
    Location
    Bristol, UK
    Posts
    85
    Thanks
    6
    Thanked 6 Times in 6 Posts
    To remove all borders from all images with links, use the following:

    Code:
    img { 
    border: 0px none; 
    }
    Hope this helps.
    Never argue with an idiot... they'll bring you down to their level and beat you with experience...

  • #3
    New Coder
    Join Date
    Jul 2005
    Posts
    29
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Thanks very much mate

    Can i just ask, what is being declared as none?

  • #4
    New Coder
    Join Date
    Nov 2006
    Location
    Bristol, UK
    Posts
    85
    Thanks
    6
    Thanked 6 Times in 6 Posts
    Good question, it's just one that I've used for a while that I was given, so the honest answer is... don't know. Colour? Thickness? Dunno. Soz man.

    Have a good one.

    Just taken a closer look at www.w3schools.com and seems like it might be border-style.

    Laters
    Last edited by dudeshouse; 05-30-2007 at 04:43 PM. Reason: More info
    Never argue with an idiot... they'll bring you down to their level and beat you with experience...

  • #5
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,635
    Thanks
    6
    Thanked 1,003 Times in 976 Posts
    Actually it’s sufficient to set either border: 0; or border: none;. Border: 0px none; is a shortcut for border-width and border-style. I’m usually writing something like border: 1px solid red; which sets the thickness, the style (i.e. solid, dashed, dotted, double, whatever…) and the color. And border: 0 none; is just leaving the color out as it’s useless to set a color to a non-existent border (as would be a border style actually).


  •  

    Posting Permissions

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