CSS gurus, can I make my absolutely positioned child element force the main parent's height?
Posted
by alex
on Stack Overflow
See other posts from Stack Overflow
or by alex
Published on 2010-06-18T01:47:39Z
Indexed on
2010/06/18
1:53 UTC
Read the original article
Hit count: 276
This is kind of hard to explain.
I have an absolutely positioned floating secondary content box.
It works great in all occurrences.
Except, when you submit a form and don't fill out the fields (see here, and push send). The box expands to show the errors, and underneath the footer there is a blank space. The best example I can give is to see it in action (link above).
I've played with min-height
and it didn't work too good. I'd also like to avoid expanding the footer with code in the event of form errors if I can help it.
Should I ditch the absolute positioning? And try with margins? Is there any other way to get it to work?
© Stack Overflow or respective owner