473,585 Members | 2,514 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 7570
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.infosystem s.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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
2926
by: Eric Osman | last post by:
This text starts +---------------+ on the left but | | then when the box | some boxed | ends we see that | text | the text on the | | left is allowed +---------------+ to flow across all the way to the right margin. What HTML tags convey that this flowing should occur ?
1
5852
by: Vincent | last post by:
I noticed an irritating behaviour of the text-indent property and I wonder if I'm the only one to feel this way about it: it seems that text-indent applies even to floated elements. Although this is probably correct according to the specification (text-indent is inherited), don't you think it makes no sense to apply text-indent to such...
1
3516
by: Aaron | last post by:
I'm using relative positioning to move a right-floated image 10px upwards.. Text wrapping around the image should go underneath it once it reaches the bottom of the image, yet it acts as if the image is still in it's original position and doesn't start wrapping until it's 10px below the bottom of the image. How can I work around this? TIA,...
14
3077
by: Eric Lindsay | last post by:
I've seen a page using display, and especially display table that did some neat things with boxes, but basically it only worked with Mozilla browsers. Fell over fairly badly with Opera and Safari (I don't have IE, but I have my suspicions that wouldn't work either). I'd like to use CSS to put some boxes down the middle of a page. The page...
3
2203
by: Coby Herd | last post by:
I 've built a site for a client using .asp and eveything is working fine except I cannot figure out how to wrap text around an image. Everything is pulled from the database using response.write. The code works correctly but I just can't seem to figure out how to do it? I've been searching for weeks about info on how to do this - to no avail....
0
1395
by: kellyonlyone | last post by:
E-XD++ MFC Library Enterprise Edition V9.80 is released (100% Source Code)! ("The only Flow/Diagramming Kits that provides full source code of components for MFC and ActiveX in a single package!") -------------------------------------------------------------------------------- May 2, 2006 For more information (press only) please contact:...
9
38894
by: shapper | last post by:
Hello, What is the best way to place an image and a text side by side using CSS? Basicaly what I am trying to do is to make the image and the text to appear as follows: Image My Text... XXXXX ---------------
14
8269
by: Zhang Weiwu | last post by:
Hello. I have been using word processor like OOO for nearly 10 years and such layout is very usual to me: gopher://sdf.lonestar.org/I/users/weiwu/ooo_wrap_correctly.png but I found it's very difficult to achieve the same layout with HTML/css. The best result I can achieve is like this: ...
2
1701
by: Jeff | last post by:
I'm rewriting some of my CMS code. It's very common to have a block of text with an image. This can be done this way: <p><img...>enough text to flow past the image... </p> or this way:
8
2220
by: Jonathan Sachs | last post by:
I'm trying to compose a list of items, each of which consists of text that wraps around a picture at the left margin. The examples I have seen tell me to do it like this: <p><img src="xxxx.jpg" align="left" width=nn height=nn>zzz zzzzz zz zzzzz...</p> In my case, since the wrapped text includes a headline, I assume I am supposed to do...
0
7835
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8195
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8209
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6596
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5707
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5386
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3831
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3856
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1444
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.