I have this page layout:
<header>
<content>
<footer>
I have border-left and right applied to content, with min-height. BUT if the content is more than the min-height then the borders don't re-adjust accordingly.
How can I fix this?
I have this page layout:
<header>
<content>
<footer>
I have border-left and right applied to content, with min-height. BUT if the content is more than the min-height then the borders don't re-adjust accordingly.
How can I fix this?
You probably have some floating elements inside your content block, so the content block is not adjusting because of lack of 'real' content. Try adding something like <br style="clear: both;" />
inside your content block after the rest of what's inside it.
Or else, and perhaps even better, explain your problem with making a jsfiddle: http://jsfiddle.net/
kasimir is right it is probably a clearing issue, if you are using floats, i prefer the the clearfix approach (although some foolery is needed in older versions of IE) as it is more semantically correct (i think).
http://www.webtoolkit.info/css-clearfix.html
An update with a bit of code would be useful.