As the title says
my code is something like this :
<div class=container> <img/> <div>some text with line one, line two , line three </div> </div>
the container should have overflow:hidden and my text would be in more than one line , so I need only a small part of my text to appear at the bottom of container, so when user hovers, the full text appears.
I want to position text over img WITHOUT absolute positioning. I tried negative margins, but text wouldn't have BG color there. Also tried Relative pos. => works great but not on chance on IE.
here is an image of what I want
position:relative
solves your problemI see no reason not to use
position: absolute
.See: http://jsfiddle.net/NeaR4/
CSS:
HTML: