Jump to content

Inner div...


mentalist

Recommended Posts

Hi,

I could swear that what i'm after was default behaviour...

Basically I have a div wrapping some other divs, but it won't stretch to wrap around them.

<html>
<head>
<style type='text/css'>
.box_wrap{
background-color: #efefef;
border: 1px solid #ff0000;
padding:3px;
}
.box_one, .box_two, .box_three{
position:relative;
background-color: #aaefef;
border: 1px solid #000000;
float:left;
padding:3px;
}
</style>
</head>
<body>
<div class='box_wrap'>
<div class='box_one'>One</div>
<div class='box_two'>Two</div>
<div class='box_three'>Three</div>
</div>
</body>
</html>

 

How do I get 'box_wrap' to stretch to wrap?

 

Cheers!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.