toplisek
10-24-2005, 08:07 AM
I have CSS lik e.g.:
body
{margin-left: 0px;margin-top: 0px;margin-right: 0px;margin-bottom: 0px; background-color:#DDE8FF}
.footer
{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #DDE8FF; text-decoration: none}
.footer:hover { color: #CCCCCC}
and my page:
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=iso-8859-1">
<meta name="description" content="">
<title>My website</title>
</head>
<body>
<!--Start Header-->
<table bgcolor="#809AFF">
<tr bgcolor="#809AFF" height="80">
<td align="left" valign="middle" bgcolor="#809AFF"><img alt="" src="images/spacerb.gif" width="10"></td>
<td align="left" valign="middle" bgcolor="#809AFF" width="400">
<!--1024x768 is 400x57--><!--800x600 is 340x48-->
<img src="images/head.gif">
</td>
<td align="left" valign="middle" bgcolor="#809AFF"><img alt="" src="images/spacerbheader.gif" width="93"></td>
<td align="right" bgcolor="#809AFF" width="470">
<!--1024x768 is 470x63--><!--800x600 is 368x49-->
<IMG SRC="images/banner1.gif" ALT="Banner1.gif - 9321 Bytes"> </td>
<td align="left" valign="middle" bgcolor="#809AFF"><img alt="" src="images/spacerb.gif" width="10"> </td>
</tr>
<!--End Header-->
</table>
<table border="0" height="1">
<tr>
<td height="1"><img alt="" src="images/spacerw.gif" width="1" height="1"></td>
<td height="1"><img alt="" src="images/spacerw.gif" width="1" height="1"></td>
</tr>
</table>
<!-- #Begin Main window-->
<table width="100%" border="0" cellspacing="0" cellpadding="5" bgcolor="#FFFFFF">
<tr>
<td bgcolor="#FFFFFF" width="20"><img alt="" src="images/spacerw.gif" width="20" height="10"></td>
<td bgcolor="#FFFFFF" align="left" valign="top" class="text" height="309" width="99%"><br>
<!--Start Middle page-->
<p class="title">...</b> </p>
<!--End Middle page-->
</td>
<td bgcolor="#FFFFFF" width="20"><img alt="" src="images/spacerw.gif" width="20" height="10"></td>
</tr>
<!-- #End Main window-->
<tr bgcolor="#809AFF">
<td width="20"> </td>
<td height="35" align="center" valign="middle" class="footer">My website
</td>
<td bgcolor="#809AFF"width="20"> </td>
</tr>
</table>
</body>
</html>
Can you please help me, how to do that HEADER will move according to resolution? It works when I have 1024x768, but 1152x864 it goes HEADER to much left (also with 1280x1024) and when I have 800x600 it is too big. Please help. :rolleyes:
body
{margin-left: 0px;margin-top: 0px;margin-right: 0px;margin-bottom: 0px; background-color:#DDE8FF}
.footer
{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #DDE8FF; text-decoration: none}
.footer:hover { color: #CCCCCC}
and my page:
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=iso-8859-1">
<meta name="description" content="">
<title>My website</title>
</head>
<body>
<!--Start Header-->
<table bgcolor="#809AFF">
<tr bgcolor="#809AFF" height="80">
<td align="left" valign="middle" bgcolor="#809AFF"><img alt="" src="images/spacerb.gif" width="10"></td>
<td align="left" valign="middle" bgcolor="#809AFF" width="400">
<!--1024x768 is 400x57--><!--800x600 is 340x48-->
<img src="images/head.gif">
</td>
<td align="left" valign="middle" bgcolor="#809AFF"><img alt="" src="images/spacerbheader.gif" width="93"></td>
<td align="right" bgcolor="#809AFF" width="470">
<!--1024x768 is 470x63--><!--800x600 is 368x49-->
<IMG SRC="images/banner1.gif" ALT="Banner1.gif - 9321 Bytes"> </td>
<td align="left" valign="middle" bgcolor="#809AFF"><img alt="" src="images/spacerb.gif" width="10"> </td>
</tr>
<!--End Header-->
</table>
<table border="0" height="1">
<tr>
<td height="1"><img alt="" src="images/spacerw.gif" width="1" height="1"></td>
<td height="1"><img alt="" src="images/spacerw.gif" width="1" height="1"></td>
</tr>
</table>
<!-- #Begin Main window-->
<table width="100%" border="0" cellspacing="0" cellpadding="5" bgcolor="#FFFFFF">
<tr>
<td bgcolor="#FFFFFF" width="20"><img alt="" src="images/spacerw.gif" width="20" height="10"></td>
<td bgcolor="#FFFFFF" align="left" valign="top" class="text" height="309" width="99%"><br>
<!--Start Middle page-->
<p class="title">...</b> </p>
<!--End Middle page-->
</td>
<td bgcolor="#FFFFFF" width="20"><img alt="" src="images/spacerw.gif" width="20" height="10"></td>
</tr>
<!-- #End Main window-->
<tr bgcolor="#809AFF">
<td width="20"> </td>
<td height="35" align="center" valign="middle" class="footer">My website
</td>
<td bgcolor="#809AFF"width="20"> </td>
</tr>
</table>
</body>
</html>
Can you please help me, how to do that HEADER will move according to resolution? It works when I have 1024x768, but 1152x864 it goes HEADER to much left (also with 1280x1024) and when I have 800x600 it is too big. Please help. :rolleyes: