Hey all!
Here is a portion of my code:
and styles:
This mostly comes out how I intend, except that I have to specify the outer div's height (#calendar) or else it will default to 0 as if the floated elements were not contained inside it. Is there any way to default its length to enclose all of the floated elements?
Thanks!
--Chessbot
"In that blessed region of Four Dimensions, shall we linger on the threshold of the Fifth, and not enter therein? Ah, no! [...] Then, yielding to our intellectual onset, the gates of the Sixth Dimension shall fly open; after that a Seventh, and then an Eighth -- --" Flatland, A. Square (E. A. Abbott)
Here is a portion of my code:
Code:
<div id="calendar">
<div class="month">
<h3>January</h3>
<div class="content">
Filler text filler text filler text filler text <br />
Filler text <br />
filler text filler text filler text <br />
Filler text filler text filler text filler <br />
text
</div>
</div>
<div class="month">
<h3>February</h3>
<div class="content">
Filler text filler text filler text filler text <br />
Filler text <br />
filler text filler text filler text <br />
Filler text filler text filler text filler <br />
text
</div>
</div>
<!-- etc. etc. etc. -->
</div>
Code:
#calendar {
border: 1px solid black;
background-color: #CCCCCC;
height: 621px; /* I don't want this to be necessary */
}
#calendar .month {
margin: 10px;
border: 1px solid black;
height: 175px;
width: 200px;
float: left;
overflow: auto;
background-color: white;
}
#calendar .month h3 {
margin: 0;
width: 100%;
border-bottom: 1px solid black;
color: white;
background-color: #888888;
text-align: center;
}
#calendar .month .content {
margin: 0;
padding: 5px;
}
Thanks!
--Chessbot
"In that blessed region of Four Dimensions, shall we linger on the threshold of the Fifth, and not enter therein? Ah, no! [...] Then, yielding to our intellectual onset, the gates of the Sixth Dimension shall fly open; after that a Seventh, and then an Eighth -- --" Flatland, A. Square (E. A. Abbott)