Results 1 to 3 of 3

Thread: Ie and firefox display differently ... how to correct?

  1. #1
    Join Date
    Dec 2008
    Posts
    20
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Ie and firefox display differently ... how to correct?

    web site
    www.greenclaws.co.uk

    ive done a quick fix for this but as you can see the menu bar in IE has a large gap at the end of it, ive used the same tab colour so it doesnt look to bad for now. In firefox it displays how it should.

    /* MENU*/
    #myslidemenu{
    background: #4D7865;
    width: 1200px;



    }

    .jqueryslidemenu{
    font: bold 12px Verdana;
    background: #4D7865;
    width: 100%;
    float: left;
    }

    .jqueryslidemenu ul{
    margin: 0;
    padding: 0;
    list-style-type: none;
    background: #4D7865;

    }

    /*Top level list items*/
    .jqueryslidemenu ul li {
    position: relative;
    display: inline;
    float: left;
    background: #4D7865;



    }

    /*Top level menu link items style*/
    .jqueryslidemenu ul li a{
    display: block;
    background: #4D7865; /*background of tabs (default state)*/
    padding: 8px 10px;
    border-left: 1px solid #000000;

    text-decoration: none;
    align: right;
    width: 168px;
    }

    * html .jqueryslidemenu ul li a{ /*IE6 hack to get sub menu links to behave correctly*/
    display: inline-block;
    background: #4D7865;
    }

    .jqueryslidemenu ul li a:link, .jqueryslidemenu ul li a:visited{
    color: white;
    }

    .jqueryslidemenu ul li a:hover{
    background: black; /*tab link background during hover state*/
    color: white;
    }

    /*1st sub level menu*/
    .jqueryslidemenu ul li ul{
    position: absolute;
    left: 0;
    display: block;
    visibility: hidden;
    }

    /*Sub level menu list items (undo style from Top level List Items)*/
    .jqueryslidemenu ul li ul li{
    display: list-item;
    float: none;
    }

    /*All subsequent sub menu levels vertical offset after 1st level sub menu */
    .jqueryslidemenu ul li ul li ul{
    top: 0;
    }

    /* Sub level menu links style */
    .jqueryslidemenu ul li ul li a{
    font: normal 13px Verdana;
    width: 200px; /*width of sub menus*/
    padding: 5px;
    margin: 0;
    border-top-width: 0;
    border-bottom: 1px solid black;
    }

    .jqueryslidemenuz ul li ul li a:hover{ /*sub menus hover style*/
    background: #eff9ff;
    color: black;
    }

    /* ######### CSS classes applied to down and right arrow images ######### */

    .downarrowclass{
    position: absolute;
    top: 12px;
    right: 7px;
    }

    .rightarrowclass{
    position: absolute;
    top: 6px;
    right: 5px;
    }
    any ideas on how to make them both fill out the page correctley?

    many thanks

  2. #2
    Join Date
    Jul 2009
    Location
    Binus University
    Posts
    472
    Thanks
    78
    Thanked 21 Times in 21 Posts

    Default

    use two different css, i have the problem lsat time, john the administrato give this is the example:

    Code:
    <link rel="stylesheet" href="main.css" type="text/css">
    <!--[if lt IE 7]>
    <link rel="stylesheet" href="old_ie.css" type="text/css">
    <![endif]-->
    Put your old IE styles in the old_ie.css stylesheet. They will supplement those in the main stylesheet, but only be read by IE 6 and less.

    See also:

    http://msdn.microsoft.com/en-us/libr...12(VS.85).aspx

    for more info on how conditional comments work.
    _____________________

    David Demetrius // davejob
    _____________________

  3. #3
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

Bookmarks

Posting Permissions

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