1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

CSS hover problem with links in IE

Discussion in 'CSS' started by jim_h, Jun 28, 2006.

  1. #1
    I'm at my wits end with this really. My brains fried, hopefully I can find some help here.

    My links display correctly in Firefox but IE is giving me fits. When you hover over the link, the font size of the anchor text increases a bit and gives sort of a 'jump'. I tried defining a specific font size for the a: attributes that matched the font size of the div it was in but that only botched them up further in both FF and IE by shrinking the text. I've gone through the css many times and validated it and I'm not seeing where I screwed up, maybe someone here can.

    CSS - http://www.givesgoodaural.com/includes/layout.css
    Page - http://www.givesgoodaural.com/test.php (view in IE to see what I'm talking about)

    Any help is greatly appreciated. The problem occurs after the #nav div (the menu underneat the logo) and continues on to the footer div. the two columns are #splitcol-left and #splitcol-right which are nested inside #wrapper
     
    jim_h, Jun 28, 2006 IP
  2. jim_h

    jim_h Peon

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I've sorted it out, it was using .em for font sizes that was throwing things off. There's still a small glitch in my last.fm list but nothing serious. Thanks to anyone who took the time to read.

    As an aside: I didn't realize you could use float:none as a means of centering, works pretty well!
     
    jim_h, Jun 28, 2006 IP
  3. AdamSee

    AdamSee Well-Known Member

    Messages:
    422
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    135
    #3
    float: none doesn't center an element, it's something in your document that's doing it :)

    You usually use margins: margin:0 auto;
    Or the text-align property: text-align: center;
     
    AdamSee, Jun 28, 2006 IP