Jump to content


Photo

Floating images over text


  • Please log in to reply
2 replies to this topic

#1 thehigherentity

thehigherentity
  • Members
  • PipPipPip
  • Advanced Member
  • 49 posts

Posted 05 April 2006 - 07:49 PM

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 sense

TheHigherEntity

The best way to learn
is to ask you lot........

#2 moberemk

moberemk
  • Members
  • PipPipPip
  • Advanced Member
  • 695 posts

Posted 05 April 2006 - 09:47 PM

position: relative;
This will detach your image from the text and let it float over, while still allowing for positioning relative to your parent element.
Disclaimer: No matter how harsh I may be, I'm always IMO only.

#3 thehigherentity

thehigherentity
  • Members
  • PipPipPip
  • Advanced Member
  • 49 posts

Posted 09 April 2006 - 04:50 AM

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 way

thanks again
thehigherentity
The best way to learn
is to ask you lot........




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users