WebsiteBaker Support (2.8.x) > Templates, Menus & Design

menu background shows in IE but not in Firefox or Google chrome

(1/1)

Edwinspie:
Hi,

on http://www.art-4u.co.za you will see that the menu background image shows in IE7 but not in Firefox and Google Chrome.
Anyone an idea what could be the problem?

this is my CSS

--- Code: ---body {
    margin: 20 0 1em 0;
    padding: 0;
    color: black;
    background-color: #eee;
    line-height: 130%;
    font-family: arial, helvetica, verdana, tahoma, sans-serif;
    text-align: center;
}

#wrapper-header {    background: #EEE; }

#header {
    background: #EEE url('images/banner.jpg') right no-repeat;
    width: 900px;
    height: 219px;
    line-height: 200px;
    margin: 0 auto;
    border-top: 1px solid #bbb;
    border-left: 1px solid #bbb;
    border-right: 1px solid #bbb;
    text-align: left;
}

#header h1 {
    margin: 0;
    padding-top: 100px;
    color: #07BE01;
    font-size: 100%;
    padding-left: 10px;
    letter-spacing: -1px;
}

#wrapper-menu {
   
    float: left;
    width: 100%;
}

#menu {
    background: #88ac0b url('images/menu-background.jpg') top left repeat-x;
    width: 900px;
    margin: 0 auto;
    font-size: 95%;
    white-space: nowrap; /* stops half a menu link dropping to next line. Instead, the whole link will drop. This only happens if you have a lot of menu links, and large text size */
    padding-right: 2px;    /* The menu far left, and far right borders are not quite lining up in non IE browsers for some reason. This makes it less noticable */
}

* html #menu { padding-right: 0; } /* See above comment. This re-adjusts IE to the above padding */

#menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
    float: left;
    border-left: 1px solid #95bc0e;
    border-right: 1px solid #95bf0f;
    width: 100%;
}

#menu li { display: inline; }

#menu a:link, #menu a:visited {
    padding: 0.25em 1em;
    background: transparent;
    color: #fff;
    text-decoration: none;
    float: left;
    border-right: 1px solid #95bc0e;
}

#menu a:hover {
    background: #b6e41c url('images/menu-hover.png') repeat-x;
    color: #485b06;
}

#content {
    width: 872px; /* 73% because it has 1% padding on each side, which brings it to 75% wide */
    margin: 0 auto;
    padding: 3.5em 1% 20px 1%;
    border-left: 1px solid #bbb;
    border-right: 1px solid #bbb;
    background: white;
    font-size: 90%;
    text-align: left;
}

* html #content { padding-top: 1.8em; } /* Set padding top in IE to 20px */

#footer {
    margin: 0 auto;
    padding: 2px 1%;
    width: 872px;
    text-align: right;
    color: white;
    letter-spacing: 0.15em;
    background: #88ac0b url('images/menu-background.png') top left repeat-x;
    border: 1px solid #a0c80e;
    font-size: 80%;
}

h2 {
    color: #666;
    padding-bottom: 3px;
    border-bottom: 1px solid #a0c80e;
    font-size: 150%;
    letter-spacing: -1px;
}

a:link, a:visited {
    color: #260;
    text-decoration: none;
}

a:hover {
    color: #000;
    text-decoration: underline;
}

p { margin-left: 1em; }

--- End code ---

Thanks for any tips

Edwin

erpe0812:
Hi

try

--- Code: ---#menu ul {
background:#88AC0B url(images/menu-background.jpg) repeat scroll 0 0;
border-left:1px solid #95BC0E;
border-right:1px solid #95BF0F;
float:left;
list-style-image:none;
list-style-position:outside;
list-style-type:none;
margin:0;
padding:0;
width:100%;
}
--- End code ---

rgds

erpe

Edwinspie:
Works!
thanks a lot Erpe!

Edwin

Navigation

[0] Message Index

Go to full version