I’m trying to take a background image and layer it over a navigation menu on the left side, but when I do, the background image ‘covers’ the links and they won’t work (I understand why, but what is my other option?). So I cheated by adding a background to the navigation menu (which sucks because not all browsers are rendering it correctly).
What I would like to do is just have the background flow with the text on the right, but I need it to be on top of the navigation menu on the left side.
I’ve thought about splitting the whole design in half, floating it side by side, but that would seem to be a huge waste of time.
Can anyone give me some help with this?
I’ve provided my code below. Sorry if I’m unable to foward a link:
<head>
<style type="text/css">
<!--
#header {
background: #000 url(images/photo_home.jpg) no-repeat top right;
}
-->
</style>
<!--[if lte IE 6]>
<link rel="stylesheet" type="text/css" href="styles/png-fix.css" />
<![endif]-->
</head>
<body>
<div class="body-center">
<div id="esth-body">
<div id="header">
<div class="logo">
<p style="margin: 0px;"><a href="index.html"><img src="images/logo.gif" alt="Evolution Esthetiques" width="110" height="126" border="0" /></a></p>
<p><span>evolution esthetiques</span></p>
<p><span class="address">Wade Dickinson, M.D.</span></p>
<p><span class="address">7055 N. Maple #106</span></p>
<p><span class="phone">559.797.9797</span></p>
</div>
</div>
<div class="list group">
<ul id="navmenu" class="group">
<li class="about-us"><a href="about_us.html">About Us</a></li>
<li class="our-products"><a href="products.html">Our Products</a></li>
<li class="our-services"><a href="services.html">Our Services</a></li>
<li class="contact-us"><a href="contact.html">Contact Us</a></li>
</ul></div>
<div id="body-content" class="group">
<!--<div id="column-left">
<div style="margin-top: 10em;"></div>
</div>-->
<div id="column-right">
<div class="padding">
<div class="contright"><p>At Evolution Esthetiques our goal is to provide you with the very latest, innovative, non-invasive cosmetic services and products. And, to provide education and information, with the highest level of integrity, that helps you to fully understand the choices available and make well-informed treatment decisions with our staff. Our trained staff of nurse practitioners, registered nurses, and aestheticians deliver the most effective aesthetic procedures, while doing so in a relaxing and welcoming environment.</p>
<h2>radiate, rejuvenate, reform. </h2>
<p><span><a href="#">> click here for current specials </a></span></p></div>
</div>
</div></div>
</div>
</div>
</body>
design
html, body {
margin: 0px;
padding: 0px;
font: normal 11px Verdana, Arial, Helvetica, sans-serif;
color: #000;
background: #FFF;
}
h1 {
padding: 0px;
text-transform: lowercase;
font-weight: bold;
text-align: right;
font-size: 30px;
}
h2 {
font-size: 30px;
font-weight: bold;
margin-top: 1em;
margin-bottom: 1em;
}
p span a, p span a:visited { color: #ec008c; text-decoration: none; }
p span a:hover { color: #333; text-decoration: none; }
p span a:active {
color: #000;
text-decoration: none;
}
#body-center {
text-align: left;
}
#esth-body {
position: relative;
width: 1000px;
text-align: left;
background: #FFF;
margin: 0px auto;
border: 1px solid #a40664;
}
#header {
margin: 0px;
padding: 0px;
background: #000;
height: 328px;
}
.logo {
position: relative;
width: 258px;
top: 29px;
left: 29px;
z-index: 1001;
}
.logo p {
text-align: center;
color: #FFF;
}
.logo p span {
font-size: 23px;
}
.logo p span.address {
line-height: 70%;
font-size: 18px;
}
.logo p span.phone {
color: #ec008c;
font-size: 20px;
line-height: 70%;
}
.padding {
padding: 30px 24px 30px 10px;
}
#body-content {
position: relative;
background: url(../images/art.png) repeat-y -113px -50px;
}
#column-left {
position: relative;
float: left;
display: inline;
width: 442px;
height: auto;
}
#column-right {
margin: 0px;
width: 558px;
float: right;
}
#menu {
float: left;
width: 598px;
margin: 0px;
color: #ec008c;
list-style: none;
}
#menu a {
float: left;
display: block;
margin: 0px;
padding: 1px 5px;
text-decoration: none;
text-transform: uppercase;
color: #ec008c;
border-right: 1px solid #ec008c;
}
#menu li#skins a {
border-right: none;
}
#column-right p {
line-height: 200%;
padding: 0px;
margin: 0px;
}
.contright {
margin-top: 1em;
}
.minimenu {
text-align: right;
font-size: 11px;
}
.minimenu a {
padding: 5px;
text-deocoration: none;
letter-spacing: -.5px;
}
.minimenu a, .minimenu a:link {
color: #ec008c;
text-decoration: none;
}
body#our-products .select, body#services .select {
color: #000;
}
#ablist {
width: 90%;
margin: 0px auto;
padding: 0px;
position: relative;
}
#ablist li {
line-height: 200%;
}
.group:after { /* for browsers that support :after */
content: ".";
display: block;
height: 0px;
clear: both;
visibility: hidden;
}
* html .group {
height: 1%;
overflow: visible;
} /*for IE6 */
*:first-child+html .group {
min-height: 1px;
} /* for IE7 */
navigation menu
#navmenu {
margin: 0px;
padding: 6px 0px;
background: #ec008c;
color: #000;
list-style: none;
float: right;
display: inline;
width: 558px;
}
div.list {
background: #ec008c url(../images/menu-decor.gif) no-repeat 0 0;
width: 100%;
z-index: 5;
}
#navmenu li {
float: left;
display: inline;
margin: 0 1px 0 0;
padding: 0px;
}
#navmenu a {
float: left;
display: block;
margin: 0px;
padding: 7px 28px;
text-decoration: none;
text-transform: uppercase;
color: #000;
border-right: 1px solid #000;
background: #ec008c;
}
#navmenu a:hover {
color: #FFF;
}
#navmenu li.contact-us a {
border-right: none;
}
body#our-products li.our-products a, body#about-us li.about-us a, body#contact-us li.contact-us a, body#services li.our-services a {
color: #FFF;
}