/    Sign up×
Community /Pin to ProfileBookmark

Word wrapping

I’m trying to center an image in a div & have text wrap around it on all 4 sides. The best I’ve been able to come up with so far uses “float” and puts the image to one side of the div or the other.

Anybody know how to do what I want?

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@toicontienFeb 16.2004 — As far as I know, there is no way in CSS yet. CSS 3 may allow for multi-column text layouts (i.e. newspaper text columns). But nothing that does what you want, that I can tell.

Bert Bos is listed as the CSS contact for the WWWC and you could try e-mailing him, or signing up for the W3C mailing list and discuss what you want there. It might not be too late to include something like that in the CSS 3.0 spec.
Copy linkTweet thisAlerts:
@Aronya1authorFeb 16.2004 — I was afraid the answer might be something like that. Seems like "float:center" would be a gimme, but...

Thanks for the reply.
×

Success!

Help @Aronya1 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...