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
div2 is included in div1
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>