javascript - How to give position relative to particular div -
i want .ra
position:relative
.da
.
when give position:relative
.ra
div moves according parent div
.
what can css
please me.
<div> <div class="ra">hi</div> <div></div> </div> <div> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> </td> </tr> </table> </div> <div> <div style="float:left;"></div> <div class="da">....</div> </div>
.ra { position:relative; left:200px; top:450px; min-width:101px; min-height:256px; } .da { float: left; width: 287px; padding: 0 5px 0 15px; }
the way .ra
relative .da
if .ra
positioned inside of .da
- not case. need modify html accordingly.
html:
<div class="da"> <div class="ra"> relative parent </div> </div>
css:
.da{ position: relative; }
Comments
Post a Comment