Home >Web Front-end >HTML Tutorial >div1 div2 How to position div2 to the lower right corner of div1_html/css_WEB-ITnose

div1 div2 How to position div2 to the lower right corner of div1_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:24:341535browse



div1 div2 How to position div2 to the lower right corner of div1

div2 is included in div1


Reply to discussion (solution)

Found the answer

<style type="text/css"> .box1 {border:1px #cccccc solid;width:500px;height:200px;position:relative;} .box2 {border:1px #f00 solid; width:198px; height:22px; position:absolute;bottom:0;right:0} </style> <div class="box1">	<div class="box2">333</div></div> 

Statement:
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