469,621 Members | 1,678 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,621 developers. It's quick & easy.

Text flow around an image

Hi All

Wonder if you could help me.

I have created a CMS system that allows the user to enter text and pic
'tags' for their own About us page, eg

text.... text.... text.... text.... text.... text.... text.... text....
text.... text.... text.... text....
text.... text.... text.... text.... text.... text.... text.... text....
text.... text.... text.... text....
text.... text.... text.... text.... text.... text.... text.... text....
text.... text.... text.... text....
text.... text.... text.... text.... text.... text.... text.... text....
text.... text.... text.... text....

[PIC1]

text.... text.... text.... text.... text.... text.... text.... text....
text.... text.... text.... text....
text.... text.... text.... text.... text.... text.... text.... text....
text.... text.... text.... text....
text.... text.... text.... text.... text.... text.... text.... text....
text.... text.... text.... text....
text.... text.... text.... text.... text.... text.... text.... text....
text.... text.... text.... text....

[PIC2]

and so on.

This text info is stored in a DB and when I retrieve the text to display on
their web page I sub (using Replace) the [PIC..} tags for the pics that they
have uploaded. This works fine apart from the user wants to have the
following formatting:

text.... text.... text.... text.... text.... text....
text.... text.... text.... text.... text.... text....
[PIC1] text.... text.... text.... text.... text.... text.... text....
text.... text.... text.... text.... text....
text.... text.... text.... text.... text.... text....
text.... text.... text.... text.... text.... text....

text.... text.... text.... text.... text.... text....
text.... text.... text.... text.... text.... text....
[PIC2] text.... text.... text.... text.... text.... text.... text....
text.... text.... text.... text.... text....
text.... text.... text.... text.... text.... text....
text.... text.... text.... text.... text.... text....

Because I don't know where they are going to place these tags because they
do it all from a standard TEXTAREA box, do you know of any way I can get the
images or text to create this effect?

At present, the text appears either above or below the images and this isn't
any good.

Thanks Mac


Jul 21 '05 #1
2 7260
On Sun, 28 Nov 2004 17:48:25 -0000, Macsicarr wrote:

<head>
....
<style type='text/css'>
imageBox {
float: left;
clear: left;
}
</style>
</head>
<body>
....
text.... text.... text.... text.... text.... text....
<div class='imageBox'>
[PIC2]
</div>
...text.... text.... text.... text.... text.... text.... text....
text.... text.... text.... text.... text....


...should do the trick.

HTH

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.LensEscapes.com/ Images that escape the mundane
Jul 21 '05 #2
in comp.infosystems.www.authoring.stylesheets, Macsicarr wrote:
Hi All

Wonder if you could help me.

I have created a CMS system that allows the user to enter text and pic
'tags' for their own About us page, eg At present, the text appears either above or below the images and this isn't
any good.


So, you are not doing something like you would want to do. What are you
doing? By default images in text flow are exactly where they are put.

URL?

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Jul 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

12 posts views Thread by Eric Osman | last post: by
1 post views Thread by Vincent | last post: by
1 post views Thread by Aaron | last post: by
14 posts views Thread by Eric Lindsay | last post: by
9 posts views Thread by shapper | last post: by
2 posts views Thread by Jeff | last post: by
reply views Thread by devrayhaan | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.