I am completely new to CSS and it's giving me a lot of trouble. I have set up calendar blocks that look excellent in Chrome with the following code:
/* calendar */
table.calendar { border-left:1px solid #999; }
tr.calendar-row { }
td.calendar-day { min-height:200px; font-size:8px; position:relative; } * html div.calendar- day { height:200px; }
td.calendar-day-np { background:#E8EDFF; min-height:200px; } * html div.calendar-day-np { height:200px; }
td.calendar-day-head { background:#E8EDFF; font-weight:bold; text-align:center;
width:120px; padding:5px; border-bottom:1px solid #999; border-top:1px solid #999; border-right:1px solid #999; }
div.day-number {
background:#0099FF;
position:absolute;
z-index:2;
top:-0px;
right:-25px;
padding:5px;
color:#fff;
font-weight:bold;
width:20px;
text-align:center;
border-bottom:1px solid #999;
border-left:1px solid #999;
}
td.calendar-day, td.calendar-day-np {
width:150px;
max-width:150px;
max-height:75px;
white-space:nowrap;
overflow-x: hidden;
overflow-y: auto;
top:0px;
padding:0px 25px 5px 5px;
border-bottom:1px solid #999;
border-right:1px solid #999;
}
.ui-dialog-titlebar {display:none;}
td.calendar-day div.event, td.calendar-day-np div {
overflow-x:hidden;
overflow-y:auto;
width:200px;
max-width:200px;
max-height:75px;
white-space:nowrap;
}
The HTML generated by PHP looks something like this:
<tr class="calendar-row"><td class="calendar-day"><div style="position:relative;height:100px;"><div class="day-number">7</div><p> </p><p> </p></div></td>
<td class="calendar-day"><div style="position:relative;height:100px;"><div class="day-number">8</div><div class="event">14:00-PCR Taylorsville / Rehab</div><div class="event">17:00-PCR Taylorsville / Rehab</div></div></td>
<td class="calendar-day"><div style="position:relative;height:100px;"><div class="day-number">9</div><div class="event">13:00-PCR Taylorsville / Rehab</div><div class="event">14:00-PCR Taylorsville / Audiology</div><div class="event">15:00-PCR Taylorsville / Rehab</div><div class="event">15:30-PCR Taylorsville / Rehab</div><div class="event">16:15-Taylorsville Dermatology</div></div></td>
<td class="calendar-day"><div style="position:relative;height:100px;"><div class="day-number">10</div><div class="event">08:30-Redwood Clinic GI</div><div class="event">10:00-U of U Hospital HTSHTS</div><div class="event">13:00-PCR Taylorsville / Rehab</div><div class="event">15:20-PCR Taylorsville / Audiology</div><div class="event">16:00-PCR Taylorsville / Rehab</div><div class="...
However, in Firefox, these two properties seem to be ignored.
overflow-x: hidden;
overflow-y: auto;
In Internet Explorer, my information starts halfway down the page. How can I achieve consistent results across all three browsers?