I have the following code being generated:
<html>
<head>
<style>
div.week {
overflow-x: scroll;
height: 70%;
}
div.day{
float: left;
width: 300px;
border: thin black solid;
background-color: cyan;
margin-right: 2em;
vertical-align: top;
}
</style>
</head>
<body>
<div class="week">
<div class="day">
2015-06-28
</div>
<div class="day">
2015-06-29
</div>
<div class="day">
2015-06-30
</div>
<div class="day">
2015-07-01
</div>
<div class="day">
2015-07-02
</div>
<div class="day">
2015-07-03
</div>
<div class="day">
2015-07-04
</div>
</div>
</body>
</html>
The problem is that it wraps the day
divs, so at my current resolution I have a row of 4 and a row of 3 divs:
+=====================================+
| |
| +----+ +----+ +----+ +----+ |
| | | | | | | | | |
| | | | | | | | | |
| +----+ +----+ +----+ +----+ |
| |
| +----+ +----+ +----+ |
| | | | | | | |
| | | | | | | |
| +----+ +----+ +----+ |
| |
+=====================================+
However, what I want is for all of my day
divs to be on one line, regardless of the size of my browser with a scrollbar appearing beneath:
+=====================================+
| |
| +----+ +----+ +----+ +----+ |
| | | | | | | | | |
| | | | | | | | | |
| +----+ +----+ +----+ +----+ |
|<[ ]:::::::::::::::::::::::::::::::>|
| |
| |
| |
| |
| |
+=====================================+
How can I make this work?