iphetamine Posted September 18, 2008 Share Posted September 18, 2008 I need to know what am I doing wrong... 1. I want the top nav to be next to the logo to the right. 2. And "Welcome" and the text under it should be the main body/content which I want it to be in the middle. 3. I want the dashed line to be under the logo (as it is), lining the sidebar to the right, and above the footer. Plz help me fix these. HTML: <body> <div id="header_content"> <div id="header"> <div id="logo"> <h1>ipharmbase</h1> <h2>by I. M.</h2> </div> <div id="nav"> <ul> <li class="active"><a href="#"> home</a></li> <li><a href="#">blog</a></li> <li><a href="#">downloads</a></li> <li><a href="#">about</a></li> <li><a href="#">contact </a></li> </ul> </div> </div> </div> <div id="main_content"> <div id="sidebar_nav"> <ul> <li> <h2>Go to...</h2> <ul> <li><a href="#">Pharmacology</a></li> <li><a href="#">Pharm. Chem</a></li> <li><a href="#">Microbiology</a></li> </ul> </li> </ul> <h2>What's New?</h2> <div id="content_container"> <div class="content_container_header"> Welcome </div> <div class="content_container_body"> I made this website to share my knowledge pharmaceutical sciences. </div> </div> </div> </div> <div id="footer"> <div id="footnote">All Rights Reserved ©2008</div> </div> </body> CSS: body { margin: 0; padding: 0; background: #ffffff; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; color: #666633; } h1, h2, h3 { margin: 0; text-transform: capitalize; font-weight: normal; color: #666633; } h1 { letter-spacing: -1px; font-size: 32px; } h2 { font-size: 23px; } p, ul, ol { margin: 0 0 2em 0; text-align: justify; line-height: 26px; font-size: 11px; } a:link { color: #BD520E; } a:hover, a:active { text-decoration: none; color: #BD520E; } a:visited { color: #BD520E; } /* Header */ #header_content { background: url(img02.gif) repeat-x left bottom; } #header { width: 850px; height: 150px; margin: 0 auto 40px auto; background: url(img03.gif) no-repeat left top; } #logo { padding: 35px 0 0 100px; float: left; } #logo h1 { font-size: 50px; } #logo h2 { margin-top: 10px; padding-left: 3px; text-transform: uppercase; font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 9px; color: #A0A0A0; } /* Menu */ #nav { float: right; } #nav ul { margin: 0; padding: 55px 0 0 0; list-style: none; } #nav li { display: inline; } #nav a { display: block; float: left; margin-left: 5px; padding: 7px 20px 7px 15px; background: url(img04.gif) no-repeat left 55%; text-decoration: none; font-size: 16px; color: #BD520E; } #nav a:hover { text-decoration: none; } #nav .active a { } /* Main content */ #main_content { width: 850px; margin: 0 auto; } /* Content */ #content_container { float: left; width: 600px; } /* Sidebar */ #sidebar_nav { float: left; width: 195px; } #sidebar_nav ul { margin: 0; padding: 0; list-style: none; } #sidebar_nav li { margin-bottom: 40px; } #sidebar_nav li ul { } #sidebar_nav li li { margin: 0; padding-left: 12px; } #sidebar_nav h2 { margin-bottom: 10px; padding-left: 15px; font-size: 16px; } /* Footer */ #footer { min-height: 74px; padding: 10px 0 0 0; } html>body #footer { height: auto; } #footnote { clear: both; padding-top: 10px; text-align: center; color: #943505; } #footenote a { color: #943505; } Quote Link to comment Share on other sites More sharing options...
dropfaith Posted September 18, 2008 Share Posted September 18, 2008 link a working example will make it easier to answer that way we can see wat its doing Quote Link to comment Share on other sites More sharing options...
iphetamine Posted September 18, 2008 Author Share Posted September 18, 2008 Well, I dont have access to a web server at the moment plus I can't upload them here, so here are the files. please bear with me. http://www.savefile.com/files/1793842 Quote Link to comment Share on other sites More sharing options...
iphetamine Posted September 19, 2008 Author Share Posted September 19, 2008 Forget the above guys, here's an update. I need help with fixing the layout of this site. 1. I want the top menu to be displayed as inline. 2. the GoTo sidebar needs to be to the left. 3. Dashed lines (dividers) must be under banner, above footer, and to the right of the sidebar. Any help is appreciated. http://www.freewebs.com/rxplanet/ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.