CSS relative positioning -
i want .tag
element placed literally on top of img tag. i've tried position: relative
it's not quite working i'd to. don't want .tag
push image below it.
<div class="first center"> <div class='tag'></div> <img src=''/> </div>
position: relative
on outer div, , position: absolute
on two elements div
inside.
see here explantion of why works:
http://css-tricks.com/absolute-positioning-inside-relative-positioning/
live demo: http://jsfiddle.net/xakbp/
Comments
Post a Comment