Min-Height 100%?

2019-09-05 06:27发布

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?

标签: css xhtml size
1条回答
爷、活的狠高调
2楼-- · 2019-09-05 06:52

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.

查看更多
登录 后发表回答