|
Posted by Stephen Poley on December 11, 2004, 9:54 pm
Please log in for more thread options
wrote:
>My promblem is: I have site with text from database, but i want to add two
>images in corner like:
>
>text text text text text text text text text text image
>text text text text text text text text text text image
>text text text text text text text text text text image
>text text text text text text text text text text text
>text text text text text text text text text text text
>image text text text text text text text text text text
>image text text text text text text text text text text
>image text text text text text text text text text text
>
><p align="justify"><img src="a.jpg" width="100" height="100"
>align="rigth">text from database
><img src="b.jpg" width="100" height="100" align="left"></p>
>
>it isn't right way.
>
>Any suggestions?
Well, one is that you've mis-spelled "right". Another is that
presentation is better done with CSS rather than HTML attributes,
particularly if you have several pages with the same basic layout. A
third is that justified text isn't a very good idea on the web, given
the lack of a decent hyphenation mechanism. (Unless you make sure to
write all your text with very short words, like this.)
Having said that, getting the image at the top right should be easy
(maybe it was just your typo) but bottom left is not. You more or less
have to guess where in the text to place it for typical browsing
situations and accept that in wider or narrower windows the effect won't
be quite what you had in mind.(There *may* be a Javascript solution, but
I don't suppose it's simple.)
--
Stephen Poley
http://www.xs4all.nl/~sbpoley/webmatters/
|