i have the following divs
<div id="outer"><img src="myimgpath"><div id="name">Username</div></div>
now i want to fix the inner div to the outer div's top right corner
i have the following divs
<div id="outer"><img src="myimgpath"><div id="name">Username</div></div>
now i want to fix the inner div to the outer div's top right corner
<div id="outer" style="position:relative">
<img src="myimgpath">
<div id="name" style="position:absolute; top:0px; right:0px;">Username</div>
</div>
Try something like this:
#outer{position:relative;overflow:hidden;height:100px;}
#name{position:absolute;right:0;}