SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Zealot
    Join Date
    Aug 2004
    Location
    CA
    Posts
    141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Space between anchor text and underline: chromium bug?

    I noticed the following code causes the underline under the anchor text to touch the text:

    <div style="padding:.7em"><a href="/page.html" style="padding:1em">test</a></div>

    If the div's padding is changed to .6em or .8em *or* the anchor's padding is removed, there is a little space between the text and it's underline as there should be. I don't see the same behavior from firefox or opera. Is this a chromium bug?

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,299
    Mentioned
    460 Post(s)
    Tagged
    8 Thread(s)
    Could you give a screen shot of what you are seeing? Do you mean a space between the link text and the underline? I can't replicate it.

  3. #3
    SitePoint Zealot
    Join Date
    Aug 2004
    Location
    CA
    Posts
    141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sure, here's a screenshot. I'm on Chromium 23.0.1271.97 (171054) on Linux.

    chromium-bug.png

  4. #4
    SitePoint Wizard Stomme poes's Avatar
    Join Date
    Aug 2007
    Location
    Netherlands
    Posts
    10,283
    Mentioned
    51 Post(s)
    Tagged
    2 Thread(s)
    Is there a clear line-height and font-size set on this anchor? Or is Chrome being all cute by taking a wild guess?

  5. #5
    SitePoint Zealot
    Join Date
    Aug 2004
    Location
    CA
    Posts
    141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The code in the screenshot is actually all of the code on the page. No <html></html> or anything else. The behavior is the same as in my valid markup. I tried adding line-height:1em;font-size:1em with the same result.


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
  •