How do you get a certain element to stretch when the window is made vertically large?

Discussion in 'CSS' started by digitaldownload, Sep 23, 2010.

  1. #1
    Hello, I have tried everything and can not get the main content of my web page to be the thing that stretches when there isn't much content and the window is made vertically really large. In the contact us section of the website, when I drag the window really large vertically, no matter what CSS I set on the main section of the web site, the only thing that stretches is the bottom footer. Is it possible to specify ONE ELEMENT TO stretch and have all other elements remain fixed? Most of the time this won't even be a problem because it would be impossible to make the window bigger than the content anyways, but I am just checking, thanks.
     
    digitaldownload, Sep 23, 2010 IP
  2. GWiz

    GWiz Peon

    Messages:
    359
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #2
    GWiz, Sep 23, 2010 IP
  3. david.rew1164

    david.rew1164 Peon

    Messages:
    55
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I guess i get what u say. U must have used difinite width for your rest of the divs (main ones like header, main, etc). Instead of using definite use width: 100%.

    thanks
     
    david.rew1164, Sep 30, 2010 IP
  4. anupviews

    anupviews Member

    Messages:
    795
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    35
    #4
    set the value of width for your main wrapper and object wrapper in 100%. This will do the job for you!
     
    anupviews, Oct 6, 2010 IP