CSS Menu Help

Discussion in 'CSS' started by Swordfish, Dec 27, 2007.

  1. #1
    I have a menu in which I am trying to put together to show cross browsers.

    Seems to work ok in IE and then not ok in FF. Or vice versa.

    Anyhow here it is:

    sfcdesigns.com/fspnew/


    Any help? thanks
     
    Swordfish, Dec 27, 2007 IP
  2. Swordfish

    Swordfish Active Member

    Messages:
    988
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    70
    #2
    anyone care to help? rep for the helper.
     
    Swordfish, Dec 28, 2007 IP
  3. wd_2k6

    wd_2k6 Peon

    Messages:
    1,740
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Looks the same in both browsers to me?
    What is the difference you are seeing in FF and IE?
     
    wd_2k6, Dec 28, 2007 IP
  4. Swordfish

    Swordfish Active Member

    Messages:
    988
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    70
    #4
    The menu is SLIGHTLY too high or to low in the area it is supposed to be centered in.

    It should be centered with the orange arrow.

    I believe it looks perfect in IE, but not in FF now... so there may be an error?
     
    Swordfish, Dec 28, 2007 IP
  5. wd_2k6

    wd_2k6 Peon

    Messages:
    1,740
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Oh right i see now, erm i'm still learning myself really but i'd guess you have to add text-align:center; to the css of your menu, and maybe get rid of the margin-top and bottom that you have.
     
    wd_2k6, Dec 28, 2007 IP
  6. Swordfish

    Swordfish Active Member

    Messages:
    988
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    70
    #6
    i tried that and it didnt work... i am pretty close i think to having it correct... but just cant figure it out.
     
    Swordfish, Dec 28, 2007 IP
  7. Swordfish

    Swordfish Active Member

    Messages:
    988
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    70
    #7
    ok $5 to paypal to the person who fixes.
     
    Swordfish, Dec 28, 2007 IP
  8. bjplink

    bjplink Peon

    Messages:
    243
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #8
    One way to get things like this to be vertically centered is to set the containing elements line-height.

    So if your background image is 25px high, set the line-height on the list elements to the same.
     
    bjplink, Dec 28, 2007 IP
  9. Swordfish

    Swordfish Active Member

    Messages:
    988
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    70
    #9
    I was able to get it with line height at 15px.
     
    Swordfish, Dec 28, 2007 IP