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

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -