css3 - margin top negative value issue css -
i have div inside div. need pull inside div out of container div. used following code. if use margin top in negative value container div move inside div. couldn't use position absolute
alignment issue.
code:
<div style="background-color:#999999; width:150px; height:300px;"> <div style="position:relative; width:100px; height:100px; background-color:#006633; margin-top:-50px;"></div> </div>
how achieve position relative?
Comments
Post a Comment