Forums

[resolved] Removing borders from linked images (11 posts)

  1. fridayteam
    Member
    Posted 4 years ago #

    Hello!

    Please have a look at the blog http://www.go2malawi.com/blog/ and see if you can tell me how to remove an obviously default setting (somewhere) to remove the border on any image that also has a hyperlink.

    I don't as a rule like borders, so some support on this would be marvelous, thank you.

  2. estjohn
    Member
    Posted 4 years ago #

    in your style.css

    where ithas

    img {

    add
    border: none;

  3. fridayteam
    Member
    Posted 4 years ago #

    nope, that code is not even in the style.css

    what should I do next?

  4. macmanx
    Member
    Posted 4 years ago #

    Add this to your style.css file:

    img {
    border: none;
    }

  5. vkaryl
    Member
    Posted 4 years ago #

    Actually, as a just-in-case, add this:

    img, img a {
    border: none;
    }

    unless you want some of your image links to HAVE borders.

  6. estjohn
    Member
    Posted 4 years ago #

    oops good catch. :)

  7. fridayteam
    Member
    Posted 4 years ago #

    Thanks, does that go in any particular place? Or just at the end of all the really easy to understand stuff that lives in there?

  8. fridayteam
    Member
    Posted 4 years ago #

    Found this also:

    http://www.brokenkode.com/board/viewtopic.php?id=108

    going to put that bit of code somewhere and see what happens.......

  9. vkaryl
    Member
    Posted 4 years ago #

    I generally put that toward the top of the css file, just below the body declaration. No special reason, just how I do it....

    [Um. "border: none;" and "border: 0;" are exactly the same thing.... don't use it twice, pick one or the other....]

  10. fridayteam
    Member
    Posted 4 years ago #

    Thanks a lot, I put it under a title called 'universal elements' and it worked.

    Much relief, thanks for all your help.

  11. vkaryl
    Member
    Posted 4 years ago #

    You're very welcome. Best of luck....

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags