PDA

View Full Version : Help with text on the side of images


mister-p
02-06-2008, 04:27 PM
Ok I'm having this issue. I have a image about 400x400 pixels justified to the left. I want text on the right side all down the picture. But when I go to the side of the picture and type the text only stays at the bottom of the picture. How can I bring the text up to start at the top right hand side of the picture and contine down the pic? Please help with this.

mangofreak
02-06-2008, 04:42 PM
Align your image to the left and the text will wrap around it.
example:

<img src="yourimage.gif" align="left">

or do you want 2 columns? with the pic on the left and the text parallel to it, to the right?

d a v e
02-06-2008, 06:22 PM
" <img src="yourimage.gif" align="left"> "

or what you would be better using is:

<img src="yourimage.gif" class="floatleft" width="400px" height="400px">

and make a class in your style sheet

.floatleft
{float_left; padding-right:5px;}

domedia
02-06-2008, 08:26 PM
<img src="yourimage.gif" class="floatleft" width="400px" height="400px">
You've been doing too much CSS, HTML with and height attributes should not contain 'px' ;)

d a v e
02-06-2008, 08:34 PM
"You've been doing too much CSS, HTML with and height attributes should not contain 'px' "

too right - it's automatic now! lol