Jump to content

help with positions


iphetamine

Recommended Posts

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;

}

Link to comment
Share on other sites

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/

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.