Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4256020
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T05:17:48+00:00 2026-05-21T05:17:48+00:00

I am trying to get start a web site for fun but I am

  • 0

I am trying to get start a web site for fun but I am having issues with CSS styles and tags with aligning I have a container, horizontal nav, left Nav, right Nav, Header and footer.

They are all in the container element but I can not align them properly. The header and norz nav are fine and so are the footers. The problem I am having is that the left body and right do not align properly can any one help. below is the coding for the HTML

 <body>
<div id="container">
<div id="header">

</div>

<div id="horizontalnav">
        <div class="navlinks ">
            <ul>
             <li><a href="http://www.Facebook.com" target="_blank">Facebook</a></li>
             <li><a href="http://www.gaiaonline.com" target="_blank">Gaia</a></li>
            <li><a href="http://www.roblox.com" target="_blank">Roblox</a></li>
            <li><a href="http://www.adventurequest.com" target="_blank">Adventure Quest</a></li> 
            <li><a href="http://www.animefreak.tv" target="_blank">Anime Freak</a></li>
            <li><a href="http://www.youtube.com" target="_blank">Youtube</a></li>
            </ul>
        </div>
</div>

<div id="leftnav">
    <p>Left Nav </p>
</div>


<div id="body">


</div>

<div id="rightnav">

    <p>right Nav </p>

</div>

<div id="footer">
this is the footer
</div>


 </div>

 </body>

and now for the css yes i use the one off of 2createawebsite.com and try to manipulate it

 #container  {
 width: 100%;
 }

 #header    {
  width: 89%;
 height: 15%;
 position: relative;
 background-image: url(Header.jpg);
 border-bottom: 2px solid #000000;
}

#header a  {
 color: #ffffff;
 text-decoration: underline;
 font-weight: bold;
 font-family: Verdana;
 font-size: 14px;
 }

 #header a:visited  {
 color: #000000;
 text-decoration: underline;
 font-weight: bold;
 }

 #header a:hover  {
 color: #cc0000;
 text-decoration: none;
 font-weight: bold;
 }
 #horizontalnav  {
 width: 89%;
 height: 30px;
 position: relative;
 background-color: #F2D6AF;
 border-bottom: 2px solid #000000;
 }
 .navlinks  {
 position: absolute; top: 4px; left:240px; 
 }
 .navlinks ul { 
 margin: auto;
 }
 .navlinks li {
 margin: 0px 18px 0px 0px;
 list-style-type: none;
 display: inline;
 }
 .navlinks li a {
 color: #000000;
 padding: 5px 12px 7px;
 text-decoration: none;
 font-size: 16px;
 font-family: Verdana;}
 .navlinks li a:hover{
 color: #ffffff;
 background-image: url(Header.jpg);
 text-decoration: underline;
 }
 #header p  {
 color: #000000;
 font-family: Arial;
 font-weight: bold;
 }
 .smalltext   {
 font-size: 9px;
 font-family: Arial;}
 #leftnav {
 float: left;
 width: 10%;
 height: 70%;
 background-color: #F8AA3C;
 border-right: 1px dashed #694717;}
#rightnav  {
 float: right;
 width: 10%;
 height: 70%;
 background-color: #F8AA3C;
 border-left: 1px dashed #694717;}
  #body  {
 margin-left :0px ;
 width : 50% ;
 padding: 0px 0px 0px 0px;
 }
 #body p {
 word-wrap : true ;
 font-family : courier new ;
 }
  #footer  {
 clear: both;
 background-color: #D1C0A7;
 }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T05:17:49+00:00Added an answer on May 21, 2026 at 5:17 am

    If you change #header and #horizontalnav to 100% this makes everything expand to the width of the page; I assume this is what you wanted to accomplish

    #header    {
        /* existing code */
        width: 100%;
    }
    
    #horizontalnav {
        /* existing code */
        width: 100%;
    }
    

    As for the left column, body column and right column, these can be set to inline-block (float is not needed then) and their widths can be set to 10%, 80%, 10% respectively. In general this should fix the layout.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Why do I get following error when trying to start a ruby on rails
Trying to get my css / C# functions to look like this: body {
Trying to get an ASP application deployed; it worked for a while but then
I'm trying get values from a GridView using the following code: foreach (GridViewRow row
Trying to get this example working from http://www.munna.shatkotha.com/blog/post/2008/10/26/Light-box-effect-with-WPF.aspx However, I can't seem to get
Whilst trying to get our app working in Firefox (I'm a big proponent of
Im trying to get into some basic JavaFX game development and I'm getting confused
Just trying to get my head around Generics by reading this enlightening article by
Im trying to get a completly data copy from a gridview, itryed clone(), tryed
Just trying to get my irb sessions to actually list the current line of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.