Text wrap without float

This forum is for all Flare issues not related to any of the other categories.
Post Reply
seanbangerter
Jr. Propeller Head
Posts: 4
Joined: Mon Feb 09, 2015 9:46 am

Text wrap without float

Post by seanbangerter »

OK, so I'm trying to wrap text around an image without using float. I have it working with one exception. The second line of text shoots all the way to the bottom and left justifies under the image. What am I doing wrong? My css looks like this:

For the image:
p.Studio_intro img
{
padding-top: 0px;
margin-top: 0px;
}

For the text wrap:
.Studio_intro
{
vertical-align: top;
padding-top: 10px

}
atomdocs
Sr. Propeller Head
Posts: 308
Joined: Tue Jun 18, 2013 3:00 am
Location: Eastern Seaboard, Thailand
Contact:

Re: Text wrap without float

Post by atomdocs »

I think what you are actually doing there is putting an image inline, and the text just follows on (this is normal). If the line of text is long and needs to break, it will automatically go below the image because the image is part of the first line (as opposed to being considered a separate element, which I guess is what you are looking for).

If you have this working in other places, is it because the text following the image is not long enough to break?

The thing is, to wrap text around an image, you need float. You could use a table, but float is better for online docs. Why do you want to avoid float?
Tom
Flare 2022, Capture 7
Image
Post Reply