Min-Height 100%?

試著忘記壹切 提交于 2019-12-12 04:24:12

问题


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.



来源:https://stackoverflow.com/questions/6737790/min-height-100

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!