Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS DIV to fill remainder..

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #164017
    katsusenshi
    Participant

    Hello All,

    I’m learning with CSS and such…came across something that is honestly ticking me off :P I can already do PHP, but SURELY this can be done with CSS, and I’m just missing something simple…right :) Found a few “hacks” that can do it, but I’m sure CSS has a SIMPLE solution to this problem…

    so I’ve got a container, and two divs. The top div changes…the bottom div simply needs to FILL the rest of the content with overflow: scroll if extra content, but have space between the bottom of the container and the div.

    http://imgur.com/QLF8efK

    fixed width doesn’t work, because the top DIV changes. percentage doesn’t work because the top div changes…i have to be overthinking this. with overflow, i can get it to cut off, but there’s no space between the bottom div and the footer area (bottom of container)

    PHP is 10x easier lol <3 thx

    #164038
    Paulie_D
    Member

    I’m sure CSS has a SIMPLE solution to this problem…

    Not really, unless you use ‘Flexbox’ which isn’t really mature enough to use in production sites just as yet.

    #164093
    katsusenshi
    Participant

    Ok. thanks.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.