Sorry, it was a CLASS of .Contents.. my bad.
For the shadow, you can see an example of how it's done here:
http://www.monarchwomenscancercenter.com/
View the code, and grab Firebug (for Firefox) to see the CSS.
I'll take a look at your new code. I would suggest that you put your nav into a proper UL, and give the UL a height.
Ok, try this:
Quote:
body {
margin: 0px;
background: #FF0000;
font-family: Arial, Tahoma, Verdana;}
#wrapper{
position:relative;
width: 996px;
margin: 0 auto;
}
.HeaderWrapper {
background-image: url(OutsideBG.jpg);
width: 100%;
}
.Header {
margin: 0px auto;
width: 996px;
overflow: auto;
}
.HeaderLeftShadow {
float: left;
width: 8px;
height: 60px;
background: url(/Images/LeftEdgeShadowBg.jpg);
background-repeat: repeat-y;}
.HeaderContents {
float: left;
width: 980px;
height: 60px;
background: #FFFFFF url(HeaderBg.jpg);
background-repeat: no-repeat;
background-position: right top;
margin: 0px auto;
}
.Logo {
position: relative;
float: left;
left: 4px;
top: 8px;}
.HeaderTopRight {
float: right;
padding: 0 4px 0 0;
font-size: 16px;}
.HeaderBottomRight {
clear: right;
float: right;
position: relative;
top: 6px;
left: -2px;}
.HeaderRightShadow {
float: left;
width: 8px;
height: 60px;
background: url(/Images/RightEdgeShadowBg.jpg);
background-repeat: repeat-y;}
.MenuWrapper {
background: url(/Images/OutsideMenuBG.jpg);
background-repeat: repeat;}
.Menu {
background: url(MenuBg.jpg) repeat-x;
/* background-repeat: repeat;*/
/* width: 996px;*/
margin: 0px auto;
overflow: auto;
}
.MenuLeftShadow {
float: left;
width: 8px;
height: 40px;
background: url(/Images/LeftEdgeMenuShadowBg.jpg) repeat-y;
}
.MenuContents {
float: left;
width: 970px;
padding: 0px 0 0 10px;
overflow: auto;}
.MenuContents a {
color: #FFF0F0;
font-size: 1em;
text-decoration: none;
padding: 0 25px;}
.MenuContents a:hover {
color: #FFFF99;}
.MenuRightShadow {
float: left;
width: 8px;
height: 40px;
background: url(/Images/RightEdgeMenuShadowBg.jpg) repeat-y;
}
.MenuContents ul#menu{
margin: 0;
padding: 0;
list-style: none;
height: 2em;
}
#menu li{
display: inline;
margin: 0;
padding: 0;
}
#menu li a{
font-weight: bold;
margin: 0;
line-height: 2em;
}
.ContentsWrapper {
background: url(OutsideBG.jpg);
/* background-repeat: repeat;*/
border-bottom: 1px #606060 solid;
}
.Contents {
margin: 0px auto;
width: 996px;
overflow: auto;
}
.ContentsLeftShadow {
float: left;
width: 8px;
height: 600px;
background: url(/Images/LeftEdgeShadowBg.jpg);
background-repeat: repeat-y;}
.ContentsBody {
float: left;
width: 980px;
height: 600px;
background: #FFFFFF;
background-repeat: no-repeat;
background-position: right top;
margin: 0px auto;}
.ContentsRightShadow {
float: left;
width: 8px;
height: 600px;
background: url(/Images/RightEdgeShadowBg.jpg);
background-repeat: repeat-y;}
a {
color: #CC0000;}
|
HTML (w/o the shadows)
Quote:
<div id="wrapper">
<div class="HeaderWrapper">
<div class="Header">
<div class="HeaderLeftShadow">
<img id="imgHeaderLeftShadowPixel" src="community.freemathtest.com_files/Pixel.gif" style="border-width: 0px;">
</div>
<div class="HeaderContents">
<div class="Logo">
<img id="imgLogo" src="community.freemathtest.com_files/Logo.jpg" style="border-width: 0px;">
</div>
<div class="HeaderTopRight">
<a href="#">Link(s)</a>
</div>
<div class="HeaderBottomRight">
<!-- empty -->
</div>
</div>
<div class="HeaderRightShadow">
<img id="imgHeaderRightShadowPixel" src="community.freemathtest.com_files/Pixel.gif" style="border-width: 0px;">
</div>
</div>
</div>
<div class="MenuWrapper">
<div class="Menu">
<!-- <div class="MenuLeftShadow">
<img id="imgMenuLeftShadowPixel" src="community.freemathtest.com_files/Pixel.gif" style="border-width: 0px;">
</div> -->
<div class="MenuContents">
<ul id="menu">
<li><a href="#">Quick Feedback</a></li>
<li><a href="#">Current Discussions</a></li>
</ul>
</div>
<!-- <div class="MenuRightShadow">
<img id="imgMenuRightShadowPixel" src="community.freemathtest.com_files/Pixel.gif" style="border-width: 0px;">
</div> -->
</div>
</div>
<div class="ContentsWrapper">
<div class="Contents">
<!-- <div class="ContentsLeftShadow">
<img id="Image1" src="community.freemathtest.com_files/Pixel.gif" style="border-width: 0px;">
</div> -->
<div class="ContentsBody">
test...
</div>
<!-- <div class="ContentsRightShadow">
<img id="Image2" src="community.freemathtest.com_files/Pixel.gif" style="border-width: 0px;">
</div> -->
</div>
</div>
</div><!-- end wrapper -->
|
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
Please login or register to view this content. Registration is FREE
Please login or register to view this content. Registration is FREE
Last edited by LadynRed; 03-12-2010 at 04:41 PM..
|