Min-Height 100%?

2019-09-05 06:45发布

问题:

I want to be able to have a container element which contains the content to repeat and expand as the content goes on, but the container per se is in between two elements in which give heed of the container element "stopping" at some point.

You may view the design at:

http://www.noxinnovations.com/portfolio/charidimos/

What I want to do is have the container element which contains the content to be set at 100%. So no matter what it will always be correct in size without a set size.

Any ideas?

回答1:

As long as you give the body a height:100%, you can give your container a min-height:100% and it will stretch. Without it's parent having a height (the body, in this case) it won't stretch.



标签: css xhtml size