Newbie Question - How to Get a Background Color From the Top to Bottom?

Discussion in 'CSS' started by Brandon the Great, Aug 23, 2008.

Thread Status:
Not open for further replies.
  1. #1
    Hi

    I have a different background color in my sidebar but it's only halfway down the page. I want to make it so that the color goes all the way down the page.

    You can see an example by going to http://www.dateunknown.com.

    I'm sure this is pretty simple and only requires a code in the stylesheet.

    Please advise.
     
    Brandon the Great, Aug 23, 2008 IP
  2. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #2
    You're using DIV's and floats, div's cannot be made of equal height. You either need to use faux columns - a background image applied to a DIV wrapping both columns set to wrap floats - or switch back to tables since TD's are the only elements that can dynamically size to the same height as each-other.

    That said you've got bigger 'problems' in there - like 165 validation errors pretty much making it so what you have is NOT html, but gibberish. 44k of markup for 4k of content (easily five times what should be used), inlined CSS, inlined scripting, completely absurd number of div's and classes for such a simple layout, etc, etc... You'd almost think it was a turdpress template saddled with that stupid jquery nonsense - OH WAIT!!!
     
    deathshadow, Aug 23, 2008 IP
  3. Brandon the Great

    Brandon the Great Banned

    Messages:
    170
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #3
    LOL, you're a psycho. But I like that, and if you're willing - I will pay you to fix everything you just stated. PM me with a quote.
     
    Brandon the Great, Aug 23, 2008 IP
Thread Status:
Not open for further replies.