
I have a situation as drawn above.
- Container contains undefined number of boxes.
- #container expands to entire browser width and can contain undefined number of divs
- .shifts expands to #container width
- .day-info has fixed width
The problem is that I don't know how to make that .shifts alway sticks left to the .day-info. If nested divs inside the .shifts have smaller width than .shifts everything is fine. If they have bigger then .shifts fall below the .day-info
Code:
#content
{
margin: 40px;
width: auto;
}
.shifts
{
float: left;
padding: 10px;
width: auto;
}
.day-info
{
background: #EEE;
border-right: 1px solid #D9D9D9;
float: left;
overflow: hidden;
width: 80px;
}
Comment