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
https://forums.phpfreaks.com/topic/155368-inner-div/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.