Jump to content

[SOLVED] how to adapt vertical line to height, not to parent element


Recommended Posts

Hi there, on http://www.mondodellabirra.com/shop you can see that I created a vertical line to separate the 3 columns with height 98% of the container (i.e. between header and footer). The problem is that when a column expands (for instance the middle one) the other ones don't follow, as each one sticks to its parent column. I wish to have the vertical lines always 98% of the total page height.

 

I tried with negative margin/padding bottom, I tried body{height:100%;min-height:100%}, I tried with top:0;bottom:0;  or auto, to no avail.

 

Is there a method for having the vertical line automatically adapt to the page, or to the header/body/footer element?

Edited by Enoteca (see edit history)
Link to comment
Share on other sites

  • 3 weeks later...

For anyone who will have the same problem, an alternative solution would be hooking the vertical line to the columns and not to the general page, follwing this scheme (all inside header.tpl):

1 line on the right margin of left column + 1 overlapping line on the left margin of center column + 1 line on the right margin of center column + 1 overlapping line on the left margin of right column.

If you don't overlap 2 lines you'd have a problem when one column is less tall than a side column.

 

Probably not the best solution but it works. Anyone needing the CSS you can PM me.  Bye

Edited by Enoteca (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...