IE CSS Problem, simple please help :)

Discussion in 'CSS' started by belgin fish, Dec 20, 2009.

  1. #1
    Hi, well I'm currently having an issue with my nav bar when viewing the site in internet explorer.

    http://alturl.com/ynpy


    As you can see, in firefox it works fine. When the users rollover the nav bar item it changes the background to a whiteish color and the text changes to black, while in ie it automatically changes the background color to white without rolling over and the text stays white aswell.

    The stylesheet can be found at /style.css

    EDIT: Not sure if its just me getting this problem since it worked on someone elses ie browser.
     
    Last edited: Dec 20, 2009
    belgin fish, Dec 20, 2009 IP
  2. Pixel T.

    Pixel T. Well-Known Member

    Messages:
    1,205
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    170
    #2
    Try remove the #f5f7ff after background.

    Should fix the problem. Make sure you have a backup copy just incase I'm wrong. :p
     
    Pixel T., Dec 20, 2009 IP
  3. belgin fish

    belgin fish Well-Known Member

    Messages:
    1,544
    Likes Received:
    72
    Best Answers:
    0
    Trophy Points:
    185
    Digital Goods:
    2
    #3
    ok, ill try it in a sec!

    edit : :( Still did the same thing in ie when i did your fix.
     
    belgin fish, Dec 20, 2009 IP
  4. hdewantara

    hdewantara Well-Known Member

    Messages:
    538
    Likes Received:
    47
    Best Answers:
    25
    Trophy Points:
    155
    #4
    Probably IE just can't interpret your image url quite well.
    Failed to find your image, it just loaded the default non-image bg: #f5f7ff
    #navbar ul {
        margin: 0;
        padding: 5px;
        list-style-type: none;
        text-align: center;
        background:#f5f7ff url([COLOR="Red"]/../images/navbarbg.png[/COLOR]) repeat-x top; 
        }
    Code (markup):
    Why not just /images/navbarbg.png ?

    Your site look good in my FF, IE8 though.
     
    hdewantara, Dec 26, 2009 IP
  5. belgin fish

    belgin fish Well-Known Member

    Messages:
    1,544
    Likes Received:
    72
    Best Answers:
    0
    Trophy Points:
    185
    Digital Goods:
    2
    #5
    i put /../ because the stylesheet is in the css folder.
     
    belgin fish, Dec 26, 2009 IP
  6. hdewantara

    hdewantara Well-Known Member

    Messages:
    538
    Likes Received:
    47
    Best Answers:
    25
    Trophy Points:
    155
    #6
    True.

    My point is that you might still looking folders
    from server (point of) view, while actually it is your
    visitor browser who look into it.

    A visitor can't look into /../images of your folder,
    he just see the first "/" (e.g: public_html) and its subfolders.

    So may be his browser is IE6 or 7,
    not as sophisticated as modern browsers,
    which capable to manipulate /../images url.

    Just try it,
    and let me know :)

    Regards,
     
    hdewantara, Dec 26, 2009 IP
  7. belgin fish

    belgin fish Well-Known Member

    Messages:
    1,544
    Likes Received:
    72
    Best Answers:
    0
    Trophy Points:
    185
    Digital Goods:
    2
    #7
    Wat should I try exactly? What should i replace it with?
     
    belgin fish, Dec 26, 2009 IP
  8. hdewantara

    hdewantara Well-Known Member

    Messages:
    538
    Likes Received:
    47
    Best Answers:
    25
    Trophy Points:
    155
    #8
    In style.css (red phrase below), from:
    ...
    #navbar ul {
        margin: 0;
        padding: 5px;
        list-style-type: none;
        text-align: center;
        background:#f5f7ff url([B][COLOR="Red"]/../images/navbarbg.png[/COLOR][/B]) repeat-x top; 
    }
    ...
    
    Code (markup):
    to this one:
    ...
    #navbar ul {
        margin: 0;
        padding: 5px;
        list-style-type: none;
        text-align: center;
        background:#f5f7ff url([B][COLOR="Red"]/images/navbarbg.png[/COLOR][/B]) repeat-x top; 
    }
    ...
    Code (markup):
    Hope this would work...
     
    hdewantara, Dec 26, 2009 IP
  9. djrico01

    djrico01 Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    lol, i use firefox but all i see is a blank page ?
     
    djrico01, Dec 27, 2009 IP
  10. belgin fish

    belgin fish Well-Known Member

    Messages:
    1,544
    Likes Received:
    72
    Best Answers:
    0
    Trophy Points:
    185
    Digital Goods:
    2
    #10
    The site is under maintenance atm.
     
    belgin fish, Dec 27, 2009 IP
  11. djrico01

    djrico01 Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    ok that explains a lot;)
     
    djrico01, Dec 27, 2009 IP