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

  • Home
  • SEARCH
  • 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 180741
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T14:38:23+00:00 2026-05-11T14:38:23+00:00

I’m using 960 grid system to create a layout prototype. I would like to

  • 0

I’m using 960 grid system to create a layout prototype.

I would like to set the color between Navigation and Content to #000 (solid black), but I can’t figure out how. What I currently get is:

alt text

Using this code:

<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> <html xmlns='http://www.w3.org/1999/xhtml'> <head> <meta http-equiv='Content-type' content='text/html;charset=UTF-8' /> <link rel='stylesheet' type='text/css' media='all' href='css/reset.css' /> <link rel='stylesheet' type='text/css' media='all' href='css/text.css' /> <link rel='stylesheet' type='text/css' media='all' href='css/960.css' /> <link rel='stylesheet' type='text/css' media='all' href='css/custom.css' /> <title>The system</title> </head> <body>  <div class='container_16' id='base'>     <div class='grid_16' id='header'>Graphical banner</div>     <div class='grid_16' id='logoutrow'>Logout row</div>     <div class='grid_3' id='navigation'>Navigation</div>     <div class='grid_13' id='content'>Content</div>     <div class='grid_16' id='footer'>Footer</div> </div>  </body> </html> 

My two questions:

  • How do I specify a color for all ‘in between’ space like the one between Navigation and Content?
  • My layout only looks like I want if if I don’t use clear like in this tutorial. Why?

For the in between color I’ve tried putting this in custom.css without success:

div#base {     background-color: #000; } 

If you are unfamiliar with 960 grid system but still would like to try and help the whole 960.css can be found here.


Both questions solved:

  • My second question is solved below in a post by Jan Aagaard. I didn’t include the nbsp XML entity and had an empty div. It didn’t work, at least not in Firefox 3.x.

My current code looks like this:

<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> <html xmlns='http://www.w3.org/1999/xhtml'> <head> <meta http-equiv='Content-type' content='text/html;charset=UTF-8' /> <link rel='stylesheet' type='text/css' media='all' href='css/reset.css' /> <link rel='stylesheet' type='text/css' media='all' href='css/text.css' /> <link rel='stylesheet' type='text/css' media='all' href='css/960.css' /> <link rel='stylesheet' type='text/css' media='all' href='css/custom.css' /> <title>The system</title> </head> <body>  <div class='container_16' id='base'>     <div class='grid_16' id='header'>Graphical banner</div>     <div class='clear'>&nbsp;</div>     <div class='grid_16' id='logoutrow'>Logout row</div>     <div class='clear'>&nbsp;</div>     <div class='grid_16' id='navigation-content>         <div class='grid_3 alpha' id='navigation'>Navigation</div>         <div class='grid_13 omega' id='content'>Content</div>     </div>     <div class='clear'>&nbsp;</div>     <div class='grid_16' id='footer'>Footer</div>     <div class='clear'>&nbsp;</div> </div>  </body> </html> 

The 960 grid system says grid child nodes should follow certain rules. The first child node should have the alpha class and the last one the omega class. Which is what I’m doing above. It’s the difference from the answer GateKiller gave below, which apart from that provided a solution.

  • 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. 2026-05-11T14:38:23+00:00Added an answer on May 11, 2026 at 2:38 pm

    The best way to do this would be to wrap #navigation and #contents inside a container div like so:

    <div class="container_16" id="base">     <div class="grid_16" id="header">Graphical banner</div>     <div class="grid_16" id="logoutrow">Logout row</div>     <div class="grid_16" id="navigation-content">         <div class="grid_3" id="navigation">Navigation</div>         <div class="grid_13" id="content">Content</div>     </div>     <div class="grid_16" id="footer">Footer</div> </div> 

    You could then set the background as so:

    #navigation-content {     background: #000 } 

    You only really need the clearing div if the you do not use the full 16 grids or if you using any float rules which need clearning. The author has the following to say on the clear:

    Lastly, I wanted to talk about the clearing methods included in the 960.css. First off is my personal preference, adding an innocuous bit of markup to clear all elements. I have already written about it extensively, so I won’t go over all that again. Basically, add class="clear" to a <span> or <div> that you want to disappear. The only effect it will have is to clear floats.

    The other method is for all you markup purists out there, who don’t want to dirty your HTML. Instead, you can insert markup via your CSS. This technique is well documented already as well. Essentially, add class="clearfix" to elements to clear what comes after them.

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

Sidebar

Ask A Question

Stats

  • Questions 114k
  • Answers 114k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer After much pain I've finally managed to get it working.… May 11, 2026 at 10:11 pm
  • Editorial Team
    Editorial Team added an answer Yes, the tags can only be used on the page… May 11, 2026 at 10:11 pm
  • Editorial Team
    Editorial Team added an answer Aggregate in a subquery derived table and then join to… May 11, 2026 at 10:11 pm

Related Questions

I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I am currently running into a problem where an element is coming back from
Seemingly simple, but I cannot find anything relevant on the web. What is the
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is
Is it possible to replace javascript w/ HTML if JavaScript is not enabled on

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.