Forum Moderators: not2easy
This worked fine with a small graphic
#masthead{
border-bottom: 3px solid #000000;
width: 100%;
background-image: url(images/90thbar2.jpg);
}
#navBar{
margin: 0 79% 0 0;
background-color: #339966;
}
#content{
float:right;
width: 75%;
padding: 1% 3% 0 0;
}
This puts the navbar and content next to each other, resizes well, etc but overwrites the siteinfo at bottom
#masthead{
width: 100%;
background-image: url(90thbar3.jpg);
max-height: 151px;
min-height: 151px;
}
#navBar{
background-color: #666666;
margin-top: 0;
margin-right: 0;
margin-bottom: 0;
margin-left: 0;
width: 210px;
top: 151px;
position: absolute;
border-right-width: 10px;
border-right-style: solid;
border-right-color: #000000;
border-bottom-width: 15px;
border-bottom-style: solid;
border-bottom-color: #000000;
}
#content{
float:right;
width: 75%;
padding-top: 0;
padding-right: 3%;
padding-bottom: 0;
padding-left: 230px;
}
This leaves plenty of room on the layout, but still moves the navbar to just below the content
#masthead{
width: 100%;
background-image: url(images/90thbar.jpg);
max-height: 151px;
min-height: 151px;
}
#navBar{
background-color: #666666;
width: 210px;
border-right-width: 10px;
border-right-style: solid;
border-right-color: #000000;
border-bottom-width: 15px;
border-bottom-style: solid;
border-bottom-color: #000000;
margin: 0;
}
#content{
float: right;
padding-top: 10px;
padding-right: 10px;
padding-bottom: 0;
padding-left: 10px;
margin-left: 220px;
}
Here's my html:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<body>
<div id="masthead">
...
</div>
<!-- end masthead -->
<div id="content"><span class="style8">90th Infantry Division Preservation Group</span>
<div class="feature">
...
</div>
<div class="story">
...
</div>
</div>
<!--end content -->
<div id="navBar">
<div id="sectionLinks">
<p align="center"><img src="images/sidebar.jpg" width="210" height="145" align="top" /></p>
</div>
<div class="relatedLinks">
...
</div>
<div id="headlines">
...
</div>
</div>
<!--end navbar -->
<div id="siteInfo"><a href="AboutUs.html">About Us</a> ¦ <a href="contacts.html">Contact Us</a> ¦ </div>
<br />
</body>
</html>
I'm checking my results using IE7, IE6 and Firefox 2. I'm using Dreamweaver 9
I may be able to fix things by editing my html, moving navbar above content and using floating. But if possible, I'd like to get away from that as I have ~100 pages to edit, that would have to be done by hand and the info in the navbar changes on each page.
Is there some way I can get navbar and content next to each other without using absolute (or overwriting the siteinfo bar at the bottom)? Other than editing each html, unless that's what I have to do.
Thanks much. Any help will be GREATLY appeciated.
Drew
I did it the following way and content and navbar go full width with content on top:
#masthead{
}
{white-space:nowrap;
#navBar{
}
#content{
}
}
Again very sorry, don't want to ask for hand holding but I guess I am. I'm assuming it's very simple and I'm just missing it.
#navBar {
white-space:nowrap;
/* The rest of your definitions */
}
The only other option that I know of is assign "position: absolute" to the <div>
Marshall
Unless anyone has anymore suggestions, I'm just gonna bite the bullet and move the navbar above the content in my html and see what that does. Assuming it works, I'll just edit each html.
Thank you again.