CSS DIV nested at the bottom of each layer_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:46:53
Original
1411 people have browsed it

I found a lot of examples on the Internet, but it was not feasible. Then I found it in a csdn post and recorded it.

Be sure to set

style="position:relative;"
Copy after login

Rendering:

CSS:

div{border:1px solid black;}#content{height:100%;}#left{width:20%;height:100%;float:left;position:relative;}#right{width:78%;height:100%;float:right;position:relative;}#bottom{width:100%;position:absolute;bottom:0;}
Copy after login

HTML:

<div id="content" name="content">    <div id="left" name="left">        <div id="top" name="top">图片</div>        <div id="bottom" name="bottom">底部</div>    </div>     <div id="right" name="right">右边			<div id="top" name="top">图片</div>			<div id="bottom" name="bottom">底部</div>	  </div></div>
Copy after login




Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!