/    Sign up×
Community /Pin to ProfileBookmark

Wrapping beneath image

Hello. I have a page where there is a picture of a person on the left and a description on the right. The problem is when I float the picture left, text will wrap under it if the picture’s height is not as much as the text. Here is a sample:

[code=html]
<div id=”person”>
<h3>Person’s Name</h3>
<img src=”person.jpg” class=”img_left”>
<p>Description</p>
</div>
[/code]

The class img_left has the declaration of float:left; but if the description happens to be really long, it wraps beneath the picture which I don’t want. I know how to achieve this look using tables, but I would rather use CSS. Thanks.

to post a comment
CSS

1 Comments(s)

Copy linkTweet thisAlerts:
@FangFeb 12.2009 — float the <p> right with a specified width.
×

Success!

Help @bp_travis 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.2,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...