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 696045
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T03:01:21+00:00 2026-05-14T03:01:21+00:00

How do I make the left and right gutters different colors with 960.gs? When

  • 0

How do I make the left and right gutters different colors with 960.gs? When I try something simple like:

<div style="background-color: green">
  <div class="container_16">
    <div class="grid_16">
      test
    </div>
  </div>
</div>
<div style="background-color: cyan">
  <div class="container_16">
    <div class="grid_16">
      test
    </div>
  </div>
</div>

The green and cyan colors are ignored. Seems like the “grid_16” class removes the color for some reason? My goal is being able to have different sections of the page in different colors all the way across the page, even past 960 pixels. So if someone makes their browser 1200px the left and right sides have the right color and the rest of the grid system is all contained within the 960 pixels in the middle.

I could add a background color to ‘body’ to do this for just 1 color, but I want multiple colors in the page. Like different colored horizontal stripes. Thanks.

  • 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-14T03:01:21+00:00Added an answer on May 14, 2026 at 3:01 am

    Well, to understand the reason you need to understand how the grid layout works.

    The thing is that when you tell the grid to be a certain width it also makes it floating.
    Which means that your outer divs have the height of 0px.
    So, in short. It doesn’t remove the background colour, it just doesn’t show it, because there is nothing to show (your grid is floating on top of it, so the actual size doesn’t matter.

    To solve it, just add a clearfix in the container and it should be solved. However, you also need to think about that the divs inherit the background colour per default.

      <div style="background-color: green">
        <div class="container_16 clearfix" style="background:white">
          <div class="grid_16">
            test
          </div>
        </div>
      </div>
      <div style="background-color: cyan">
        <div class="container_16 clearfix" style="background:white">
          <div class="grid_16">
            test
          </div>
        </div>
      </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I make div 'left' and 'right' look like columns side by side?
How to make Keyboard navigation left/up/right/down (like for photo gallery) feature for jQuery Tabs
Hy guys! I have to make a sliding div (left-right) using jquery. This is
I am trying to make next/previous page with ajax left/right arrows keys working (like
I want To make a square that has keyboard movement (up, down, left, right)
I would like to make the same scrolling feature for my left part of
Using CSS in a UIWebView, how can I make left-to right text flow in
I'm using a script to make a user's keyboard control left/right slide navigation on
I really like this vim trick to use the left and right arrows to
The text is: <div class=left right>Lorem Ipsum is simply dummy text of the printing

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.