Question

I have a website that has regions that are uneven. the sidebar first is a different length than the content, and the content is a different length that sidebar second. it looks something like this:
enter image description here

I could fix it manually in the css and make them the same length, but then any time I add something to any of them, it becomes uneven again. is there any way (or any module) to fix it so that it will dynamically stay the same length, so that when I add something to the content, and it becomes longer that the sidebars, they will fill with white-space and become the same length as the longest content?

Was it helpful?

Solution

try using Faux Columns. it basically repeats a blank image so that the columns will match the length of the longest element. this creates the illusion of equal lengths, hence the name "faux" or "fake"

OTHER TIPS

This is not Drupal specific problem. Try one of suggestions reported on Equal Height Columns using CSS: It has two CSS solutions, and one JavaScript solution.

There is the Equal Heights jQuery module.

This modules implements a jQuery Equal Heights plugin that can equalize the height of the elements of the specified class.

Licensed under: CC-BY-SA with attribution
Not affiliated with drupal.stackexchange
scroll top