Welcome to Dream.In.Code
Getting Help is Easy!

Join 131,770 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,133 people online right now. Registration is fast and FREE... Join Now!




Sidebar - navigation bar help.

 
Reply to this topicStart new topic

Sidebar - navigation bar help.

UmmmmIdk
post 9 Oct, 2008 - 10:05 PM
Post #1


New D.I.C Head

*
Joined: 3 Oct, 2008
Posts: 10


My Contributions


The problem: I want to make a side navigation bar on the left, but the content isn't centering the right way. The main content should be centered and 800px wide. I want the sidebar to take up the whole left margin, but it isn't working like that. Thanks in advance.

Here is the website: www.notanotherfreesite.com/zbt

header.php - just a portion. All open divs are closed in footer.

CODE

<center>
<div id="container">
<div id="header">
<?php include('topmarquee.php');?>
<div id="toppic">
<img src="images/top_banner_1.png" />
</div>
<div id="left">
<?php include('menu.php');?>
</div>
</div>
<div id="right">
<div id="main">


main.css

CODE

#container {
    padding:0;
    width:1022px;
    margin:0;
}
body {
    background-color:#d5daff;
    margin:0;
}
marquee {
    padding-top:6px;
    background-color:#FFFFFF;
}
#header {
    background-image:url(images/top_bg_2.png);
    background-repeat:repeat-x;
    width:802px;
    height:223px;
}
#navbar {
        background-color:#999999;
    height:auto;
    margin:0;
    width:220px;
    text-align:center;
    font-size:15px;
    font-family:Arial, Helvetica, sans-serif;
}
#navbar a {
    padding-left:7px;
    padding-right:7px;
}
#navbar a:link, a:visited {
    color:#000000;
    text-decoration:none;
}
#navbar a:hover {
    color:#FFCC00;
    text-decoration:none;
}
#main {
    font-size:15px;
    font-family:Georgia, "Times New Roman", Times, serif;
    width:760px;
    padding:20px 20px 20px 20px;
    background-color:#FFFFFF;
    border-width:1px;
    border-color:#000000;
    border-style:solid;
    border-bottom:none;
}
#toppic {
    padding-top:9px;
}
#footer {
    background-image:url(images/foot_bg.png);
    background-repeat:repeat-x;
    font-size:10px;
    font-family:Arial, Helvetica, sans-serif;
    border-top-width:2px;
    border-top-color:#000000;
    border-top-style:solid;
    background-color:#666666;
    width:802px;
    height:30px;
}
#left {
    float:left;
    width:220px;
}
#right {
    float:right;
    width:802px;
}


This post has been edited by UmmmmIdk: 9 Oct, 2008 - 10:14 PM
User is offlineProfile CardPM

Go to the top of the page

MacAnimeGirl
post 23 Oct, 2008 - 06:16 AM
Post #2


D.I.C Head

**
Joined: 30 Sep, 2008
Posts: 132


My Contributions


If you want it to take up the a whole side then you need to give it a height.
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/20/08 01:43PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month