Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Feb 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Fill Empty Space On Right

    I want to be able to create a div layer.

    Start it at 850 pixels - set it to 100% (width and height) and fill it with black.

    When I do this, it only expands to a height of the first window. If the user scrolls down, the layer doesn't expand as I expected it would.

    What is the best answer?

    Thanks,
    Keith

  • #2
    Regular Coder Rappa's Avatar
    Join Date
    Nov 2005
    Location
    LI
    Posts
    356
    Thanks
    21
    Thanked 9 Times in 9 Posts
    I believe your in the wrong section?

  • #3
    New to the CF scene
    Join Date
    Feb 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Rappa View Post
    I believe your in the wrong section?
    I put it here because I am guessing that you need to put some type of pixel shim.

    This is something that I have done in tables, but would like to make the jump to layers.

    If there is a better forum, let me know which one, I will post there

  • #4
    Regular Coder Karen S. Garvin's Avatar
    Join Date
    Nov 2006
    Location
    Maryland
    Posts
    227
    Thanks
    5
    Thanked 2 Times in 2 Posts
    Hi, this is a CSS question, so you'd do best to check that forum. You might find something already there that addresses this kind of issue (it's an ongoing problem for browsers).

    Using divs and CSS should let you get away from the pixel shim trick all together.
    ----------------------------------------------
    Karen S. Garvin
    http://ksgarvin.wordpress.com

  • #5
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    So you want to set the width to 850px then you want it to expand to 100%? It sounds like you just want to have left and right margins.
    ||||If you are getting paid to do a job, don't ask for help on it!||||


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •