PDA

View Full Version : How do i get rid of this top gap (opera browser)



Dave
April 24th, 2006, 04:18 AM
When I preview this page, on Firefox, Netscape and IE it works fine, thre is no gap between the table and the browser on the top.

When I preview this in Opera, you will see like a 10 pixel gap on the top before the table.

Why is that?


<!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=iso-8859-1" />
<title>Champion Mindset: Business, Life &amp; Leadership Motivational Training</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style></head>
<body>
<table width="790" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#666666">
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td bgcolor="#003366">&nbsp;</td>
</tr>
</table>
</body>
</html>

.soulty
April 24th, 2006, 05:24 AM
try padding:0 0 0 0; in the body, solved a issue i had with ie might be the same with opera.

Dave
April 24th, 2006, 05:40 AM
Didnt work man!

.soulty
April 24th, 2006, 05:52 AM
jump on msn punk! :P

J
April 24th, 2006, 06:03 AM
i checked it works with padding 0px

<style type="text/css"> <!-- body { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; padding: 0px; } --> </style>

.soulty
April 24th, 2006, 06:05 AM
^^ ha! :bad:


:P