My first attempt at CSS - a hickup in IE

Discussion in 'CSS' started by dill, Oct 9, 2006.

  1. #1
    Hello everyone,

    I've been trying to put together my first page with CSS. I have uploaded the template here:

    http://how-toy.com/indexCSS.html

    There isn't much content yet. The page looks how I intended in Firefox, but when I look at it with IE 6 there is a space above the word "Classics" in the navigation column. Can someone explain why this is occuring?

    Also, any general tips reguarding my html and css files would be appreciated - I know I have a lot to learn.

    Thanks
     
    dill, Oct 9, 2006 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    To img.logo, add {vertical-align: bottom;} or {display: block;}. See Mysterious Gaps for an explanation.

    cheers,

    gary
     
    kk5st, Oct 9, 2006 IP
  3. dill

    dill Peon

    Messages:
    51
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    display: block; did the trick. Thanks!
     
    dill, Oct 9, 2006 IP
  4. penagate

    penagate Guest

    Messages:
    277
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You can also float it. Depends on the surrounding layout. I can't advise, your link is a 404 now.
     
    penagate, Oct 10, 2006 IP
  5. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #5
    That's because a float is automagically a block element.

    cheers,

    gary
     
    kk5st, Oct 12, 2006 IP