...perhaps this is beyond my abilities, but i'm trying to format a calendar.
the obvious approach is a month is a table, a week is a row, and a day is a cell. i have two problems: ensuring that each cell is always a fixed size (1.5"x1.4") and that the information within a day has two parts, one anchored at the top, and the other at the bottom. for some reason, i can't get either of these two things to happen. obviously, i am lacking a clue here:
when i view this in a browser or look at prince's pdf output, the lower section isn't anchored to the bottom of the cell. further, some rows are certainly taller than others.
obviously, i lack enough css clue to see the obvious.
thanks,
/mtr
the obvious approach is a month is a table, a week is a row, and a day is a cell. i have two problems: ensuring that each cell is always a fixed size (1.5"x1.4") and that the information within a day has two parts, one anchored at the top, and the other at the bottom. for some reason, i can't get either of these two things to happen. obviously, i am lacking a clue here:
div.day {
display: table-cell;
width: 1.5in;
height: 1.4in;
padding: 1pt;
border: 1px solid;
vertical-align: top;
}
div.upper {
height: 0.6in;
vertical-align: top;
}
div.dotm {
font-size: 14pt;
text-align: right;
float: right;
width: 0.35in;
height: 0.35in;
}
div.lower {
height: 0.8in;
vertical-align: bottom;
}
div.fasting {
color: rgb(102, 0, 0);
font-style: italic;
float: left;
width: 65%;
height: 0.35in;
vertical-align: bottom;
}
div.lectionary {
float: right;
width: 35%;
height: 0.35in;
text-align: right;
vertical-align: bottom;
}
<div class="day">
<div class="upper">
<div class="dotm">23</div>
<div class="feast">Conception of the Forerunner</div>
<div class="lesser">Calling the Four Fishermen</div>
<div class="season">Autumn begins</div>
</div>
<div class="lower">
<div class="reading celeb">Epistle: Galatians 4:22-27 (Sep 9)</div>
<div class="reading celeb">Gospel: Luke 1:5-25</div>
<div class="reading regular">Epistle: 2 Corinthians 6:16b-7:1</div>
<div class="reading regular">Gospel: Luke 5:1-11</div>
<div class="fasting"></div>
<div class="lectionary">17AP<br/>1AC</div>
</div>
</div>
when i view this in a browser or look at prince's pdf output, the lower section isn't anchored to the bottom of the cell. further, some rows are certainly taller than others.
obviously, i lack enough css clue to see the obvious.
thanks,
/mtr