thehigherentity Posted April 5, 2006 Share Posted April 5, 2006 I am trying to float an image on my site.I have a page full of text. I want to float images over the top so the text will run behind the images.I have seen this done befor so i know its posible some how.all i have setup is <img style="float:left" src="./images/image1.jpg" width="100" height="80" />but as you will know this places the image into the text.could anyone help me with a way to place these images over the text?thanks, hope this makes senseTheHigherEntity Quote Link to comment https://forums.phpfreaks.com/topic/6676-floating-images-over-text/ Share on other sites More sharing options...
moberemk Posted April 5, 2006 Share Posted April 5, 2006 [code]position: relative;[/code]This will detach your image from the text and let it float over, while still allowing for positioning relative to your parent element. Quote Link to comment https://forums.phpfreaks.com/topic/6676-floating-images-over-text/#findComment-24296 Share on other sites More sharing options...
thehigherentity Posted April 9, 2006 Author Share Posted April 9, 2006 Thanks m8,I tryed adding that into my ccs but it did not work so i messed arround and found that absolute worked fine so thanks i would not of worked it out with out knowing what css command placed images in that waythanks againthehigherentity Quote Link to comment https://forums.phpfreaks.com/topic/6676-floating-images-over-text/#findComment-25143 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.