Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

CSS help - stretching div's vertically?

  • 05-08-2009 5:14pm
    #1
    Registered Users, Registered Users 2 Posts: 872 ✭✭✭


    Hey, I'm trying to do something using CSS. I'm looking to set it up a type of results page using containers.

    The problem i'm having is that it when the results get too long for the container they're in the container won't stretch to accommodate them.

    The closest i can find to the area that might be wrong is the overflow of the container. Does anybody know what I might be doing wrong?

    Here are some samples of the problem:
    http://swoponomics.com/test-hidden.html
    http://swoponomics.com/test-scroll.html
    http://swoponomics.com/test-visible.html


Comments

  • Registered Users, Registered Users 2 Posts: 8,488 ✭✭✭Goodshape


    You have position : absolute; on #leftresult and #rightresult which is causing problems. There's no need for it.

    Starting with your test-hidden.html ::

    remove height:300px; from #rightnavigation
    remove position: absolute; from both #leftresult and #rightresult
    add float : left; to both #leftresult and #rightresult

    ...and that should do the trick.

    You'll probably then need to add a clear : left; to any element you want to put underneath those two, to clear the left floats.


  • Registered Users, Registered Users 2 Posts: 872 ✭✭✭gerry87


    Thanks, worked perfectly on that test page. Just trying to get it going on the real one, the code's just a tad messy! I'll keep you posted.


Advertisement