float div over img
float div over img
- Started
- Last post
- 7 Responses
- ldww
how can i float a div over an image in css?
i tried positioning it befor ethe image and float:left;
- ldww0
anyone?
i found out i can get it to float with
position:absolute;
left: 0;
but then it does not stay within the parent div.
- e-pill0
ANSWER - see NTbug thread.
- versa0
if i understand correctly - it will only work positioning absolutely out of the page flow, which technically isn't floating anymore
and then of course play with your z-indexes
- doesnotexist0
you could set the image as the background and then just add type where you want with padding...couldnt you?
- nocomply0
What doesnotexist said.
- monNom0
set you top margin to negative the image height?
might make things buggy below it.
- jakeyj0
just make it a background image?