SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict
    Join Date
    Nov 2004
    Location
    Canada
    Posts
    373
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    What am I doing wrong? (Adding border to link)

    I want to add a complete border (top, bototm, right, left) to certain links. In my CSS I have this:

    a.listresult {
    border: 3px solid blue;
    margin: 5px;
    }

    This partly works, however the top and the bottom remain borderless. It only seems to apply to the sides? Is this normal, can I get a border around the top and bottom?

  2. #2
    SitePoint Wizard bronze trophy Centauri's Avatar
    Join Date
    May 2007
    Location
    Newcastle, Australia
    Posts
    3,718
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So you are looking at this in IE ? The borders appear outside the default line height (somewhere around 1.2em) and IE will hide anything outside this. Setting the line height on the links to something like 1.6em should fix it.

  3. #3
    SitePoint Addict
    Join Date
    Nov 2004
    Location
    Canada
    Posts
    373
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok thanks ill give it a shot.


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
  •