1 reply [Last post]
davedpss's picture
Last seen: 5 years 47 weeks ago
Timezone: GMT-6
Joined: 2011-11-23
Posts: 1
Points: 2

I have a page with anywhere from 2 fieldsets up to 8 depends on the user. I want it to layout 2 across and 4 down or it might only be one row down. I want the 2 blocks on any given row to be vertically aligned and the same height (there is a border around the fieldset). If there is an odd number I want to fill up rows and then have the remaining one to be in the left column. The problem is, while I want the fieldsets in the same row to be the same height, I don't want 2 fieldsets with 2 lines of content to be the same height as one with 10 lines of content.

I have tried a lot of different options and can't figure out how to make this work. Any ideas would be appreciated greatly.

Thanks - Dave.

Hugo's picture
Last seen: 2 years 40 weeks ago
Joined: 2004-06-06
Posts: 15668
Points: 2806

it would be helpful if

it would be helpful if perhaps you could show an example of what you are working with.

These sorts of requirements for boxes that are all uniform yet supposedly going to contain variable dynamic content can be tricky to work out it's slightly contradictory in nature, you may well need to resort to scripting, either server side or client side to determine the content length and set heights or classes as appropriate to allow styling of varying content in boxes.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me