Advertisement
Advertisement
| 07.08.2008 at 09:15AM PDT, ID: 23547214 | Points: 500 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>CSS height: 100%; Test</title>
<style type="text/css">
body, html {
height: 100%;
margin: 0px;
background-color: #000000;
}
table {
padding: 0px;
border-spacing: 0px;
border-width: 0px;
width: 100%;
border-collapse: collapse;
margin: 0px;
}
td {
padding: 0px;
border-spacing: 0px;
border-width: 0px;
vertical-align: top;
text-align: left;
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 10pt;
margin: 0px;
}
</style>
</head>
<body>
<table style="height: 100%; width: 100%;">
<tr>
<td style="height: 80px; background-color: #FF9900;">
height: 80px;
</td>
</tr>
<tr>
<td style="background-color: #CC0000;">
height: (not specified - looks great in FireFox, causes odd stretching in IE, unless doctype is removed)
</td>
</tr>
<tr>
<td style="height: 30px; background-color: #FF9900;">
height: 30px;
</td>
</tr>
</table>
</body>
</html>
|