Skip navigation
Currently Being Moderated

Why does my CSS have black bars?

May 24, 2013 3:03 PM

I picked 2 col elastic with left sidebar.  It shows as full width with springs but I get black bars on the sides?   How do I make the page wider?

 

Thanks

 

Frank

 
Replies
  • Currently Being Moderated
    May 24, 2013 3:20 PM   in reply to FranksPlace1

    Elastic?  Can we see your HTML and CSS code?

     

     

    Nancy O.

     
    |
    Mark as:
  • Currently Being Moderated
    May 25, 2013 11:02 AM   in reply to FranksPlace1

    This is a fairly typical centered, fixed-width layout.  The body background-color gives the appearance of dark gray underneath your white content region.  To change the background-color in your CSS code, amend this rule:

     

    body  {

        background: #666666;  /**adjust color as desired**/

    }

     

     

     

    Nancy O.

     
    |
    Mark as:
  • Currently Being Moderated
    May 25, 2013 11:05 AM   in reply to FranksPlace1

    To make the content region wider, adjust width value in this CSS rule:

     

    .twoColElsLt #container {

       width: 46em; /* this width will create a container that will fit in an 800px browser window if text is left at browser default font sizes.*/

    }

     

     

     

    Nancy O.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points