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 4 of 4
  1. #1
    Regular Coder
    Join Date
    Jul 2003
    Posts
    601
    Thanks
    17
    Thanked 0 Times in 0 Posts

    Dynamic Vertical Div Box

    Hey All,

    I'm running into a small problem with a div tag. I'm trying to create one that stretches vertically based on the amount of content within it (text). The div tag is the same across a series of pages, but the content changes. There is a footer that needs to go right below this div, so 1) absolutely positioning the footer won't work and 2) setting a fixed height of the div tag won't work.

    I've done this before awhile back, but can't get it to work now ..

    Any suggestions?

    Thanks.

  • #2
    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
    Are you wanting the footer to be at the very bottom of the page or just to be below the content div? Also it would help if you showed us your code.

  • #3
    Regular Coder
    Join Date
    Jul 2003
    Posts
    601
    Thanks
    17
    Thanked 0 Times in 0 Posts
    Just below the content div. I'm not near my code right now, but it's nothing special. I'll post tomorrow ..

    Thanks.

  • #4
    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
    Just put the footer div at the end of all of your code, and use clear:both; in CSS so it will be able to clear any floats that you may have.


  •  

    Posting Permissions

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