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

jQuery clickable div with working mailto link inside -

java - Getting corefrences with Standard corenlp package -

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -