Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

CSS/HTML Error! Help!

Featured Replies

Style.css and Index.html are attatched. index.htmlstyle.css

 

 

 

 

 

The question: How would I move the "Body Content" between the left and right nav and have the left and right nav reach the top? This is just probably a learning curve that I need to get over. Please post here if you know the answer to this.

 

Thanks

Rearrange your divs to look like this:

<div id="uppernav">UpperNAV</div>
<div id="leftnav">LeftNAV</div>
<div id="body">Body Content</div>
<div id="rightnav">RightNAV</div>
<div id="lowernav">LowerNAV</div>

Change the following CSS attributes:

#leftnav{
    float:left;
    width: 240px;
    height: 1000px;
    background-color: lightblue;
}

#body{
    float: left; 
    height:800px;
}

Should be fine then. The key is to arrange the divs how you'd want them ordered on-screen (so left div, middle div, then right div) and then add appropriate floating to align them all up together. Then, to make the entire site reach the top of the window, add this to your CSS:

 

body{
    margin: auto;	
}

Unless you mean something else by "having the left and right navs reach the top". They touch the upper nav regardless.

Edited by throzen

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.