how to implement faux columns. mine doesn't work.

Discussion in 'CSS' started by driven, Feb 20, 2007.

  1. #1
    i was reading the A List Apart's article on trying to implement faux columns so that both sidebar and content matches. but i can't seem to get right on my site here. you will notice the white gap that still exists on the sidebar.

    this is my css code for the content-container;

    #content-container {
      width: auto;
      position: relative;
      clear: both;
      margin-top: 30px;
      padding-top: 0;
      text-align: left;
      background: #333 url(/img/faux.gif) repeat-y 50% 0;
    }
    
    Code (markup):
    thoughts?
     
    driven, Feb 20, 2007 IP
  2. driven

    driven Well-Known Member

    Messages:
    400
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    138
    #2
    Ah...silly me. I know what caused the issue. I was adjusting the content-container div instead of the container div. this is what it's supposed to look like;

    
    #container {
      width: 840px;
      position: relative;
      margin: 0px 0 0 50px;
      background: #fff url(img/faux.gif) repeat-y 0% 0;
    }
    
    Code (markup):
     
    driven, Feb 20, 2007 IP