CBrownAtWork
Technical User
Hi
I'm new to HTML & CSS and trying to rebuild an existing table-based layout with absolute positioning. Does the table tag add margins between itself and the browser window? It seems like it does -- around 15 pixels or so?
Does anyone know how big this margin actually is so I can compensate for it? Thank you!
-- Chris
I'm new to HTML & CSS and trying to rebuild an existing table-based layout with absolute positioning. Does the table tag add margins between itself and the browser window? It seems like it does -- around 15 pixels or so?
Code:
<html>
<body>
<!--original table structure-->
<table border='0' cellpadding='0' cellspacing='0' width='760'>
<tr>
<td height='34' colspan='4'>gif</td>
</tr>
<tr>
<td width='42'>gif</td>
<td width='132'><font color='blue'>gif</td>
<td width='443'>gif</td>
<td width='143'><font color='blue'>gif</td>
</tr>
</table>
<!--new layout-->
<div style='position: absolute; left: 42px; top: 34px; color: red'>gif</div>
<div style='position: absolute; left: 617px; top: 34px; color: red'>gif</div>
</body>
</html>
Does anyone know how big this margin actually is so I can compensate for it? Thank you!
-- Chris