SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: Baseline is off

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Nov 2012
    0 Post(s)
    0 Thread(s)

    Baseline is off

    Wondering if anyone can figure out why the dates in my twitter feed on my website, are not quite aligned with the rest of the text. It looks like the date has some padding or something that is lifting it about 2 pixels above the baseline. Can't figure out why. Does it have to do with the float left?

    (seems to only be an issue in Firefox)



  2. #2
    SitePoint Mentor bronze trophy
    ronpat's Avatar
    Join Date
    Jun 2012
    NJ, USA
    61 Post(s)
    2 Thread(s)
    Just to confirm your report, I'm using Firefox and the baseline of the date dates seems to be exactly in line with the rest of the text unless the text is zoomed, in which case the baseline may rise a pixel or two. Don't know if it can be corrected. May be a Firefox feature.

  3. #3
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Melbourne, AU
    448 Post(s)
    8 Thread(s)
    Rather than suggest a fix, I would recommend that you merge the date and tweet into one <li>. It doesn't make sense to me to have them separate like that, and is likely to lead to trouble (as you see).

    A better option would be to include the date link inside the tweet <li>, and perhaps set it to display: inline-block (so that the margin, and background color on hover, will work as they are now).
    Facebook | Google+ | Twitter | Web Design Tips | Free Contact Form

    Forum Usage: Tips on posting code samples, images and more

    Forrest Gump: "IE is like a box of chocolates: you never know what you're gonna get."

Tags for this Thread


Posting Permissions

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