expand floating object when floating object within expands
Posted
by Scarface
on Stack Overflow
See other posts from Stack Overflow
or by Scarface
Published on 2010-06-17T04:58:40Z
Indexed on
2010/06/17
5:03 UTC
Read the original article
Hit count: 206
css
Hey guys, quick question, I have a link when clicked drops down a list. This list is floated to the right to position it properly. This list is in another box that has been floated. My problem is that when the list expands, the box does not and the list comes out of the container box, unless the list is not floated. However floating it seems like the only way to get it to the position I want. If anyone has any ideas on how to solve this problem I would appreciate it.
.container-box {
margin-top:0px;
float:left;
padding-left:5px;
position:relative;
}
#box-within {
float:right;
font-weight:bold;
max-height:250px;
display: none;
background-color:#fff;
overflow: auto;
width:325px;
padding:5px;
position:relative;
}
© Stack Overflow or respective owner