forcing line breaks.

ktown's picture

They have: 34 posts

Joined: May 2001

hello.

i have an image and i have text wrap around it so its - woo hoo.. then some text wraps around it - now... how can i FORCE the next paragraph to automatically go under the pic instead of to still wrap around the image?

basically i don't want the second paragraph to wrap - just the first.

thanks.

Busy's picture

He has: 6,151 posts

Joined: May 2001

I don't quite get you, but swap align="left" for either align="middle" or align="bottom" (and it's align, not valign).
Or you can use h and vspace

Look in the link in my signature and just over half way on the graphics page shows examples of aligning graphics.

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

You could also do to start the next paragraph on a new line, but I'm not sure that this is the best way to do things. That does work though. Suzanne might know of a better way.

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

heh. Um. Not really, my best advice is that if you really don't want wrapping, consider the size of your paragraph, your image, et cetera and do some copyediting. However, as far as messing with the code, if you only want to affect ONE paragraph in a set of paragraphs, you can set an ID or CLASS for that paragraph (the second) and use "clear" to set which way you want it to work. {clear: both;} may be what you need.

They have: 16 posts

Joined: Nov 2002

I would seperate each paragraph in P tags and place the image to text wrap around in one of them. Then throw in the BR.

<p><img src="myimage.gif" align="left">
this is just some filler text here<br clear="all"></p>
<p>this would be the next paragraph</p>
'

Renegade's picture

He has: 3,022 posts

Joined: Oct 2002

Or you can go like this
This is some text before the image

This is some text after the image

Which will look like this:

This is some text before the image
[image]
This is some text after the image

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

And it would look just like that without the align and style attributes as well.

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

And to be really explicit:

text paragraph styled however.

more text

OR

.clearboth { clear: both; }

.
.
.

text paragraph styled however.

more text

Which would allow you to change clearboth (name it something reasonable) to anything you wanted, if you changed your mind about the design in the future, without having to edit the content.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.