By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,978 Members | 1,362 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,978 IT Pros & Developers. It's quick & easy.

Text flow around an image

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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.