/    Sign up×
Community /Pin to ProfileBookmark

Container div question

Is there another way than (float:left? to make a container div wrap around two other div’s?

here is the code in question:

//**CSS code excerpt**//
.dialogContent {
position:relative;
top: 150px;
width: 750px;
color: #fff;
padding: 5px;
}

.left {
float:left;
width:350px;
border:1px solid yellow;
}

.right {
float:right;
width:350px;
border:1px solid yellow;
}

//**HTML markup excerpt**//

<div class=”dialogContent”>
<h3>The header here</h3>

<div class=”left”><p>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
</p>
</div><!–div left ends–>

<div class=”right”><p>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
</p>
</div><!–div right ends–>

</div><!–dialog content ends–>

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@CentauriSep 04.2007 — [CODE].dialogContent {
position:relative;
top: 150px;
width: 750px;
color: #fff;
padding: 5px;
[COLOR="Red"]overflow: hidden;[/COLOR]
}[/CODE]
Copy linkTweet thisAlerts:
@cssGalacticauthorSep 04.2007 — Thank you very much. Problem solved
×

Success!

Help @cssGalactic 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 6.17,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

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