# How do i get rid of this top gap (opera browser)

**URL:** <https://forum.kirupa.com/t/how-do-i-get-rid-of-this-top-gap-opera-browser/186735>\
**Category:** web dev\
**Created:** [April 24, 2006, 8:18am UTC](https://forum.kirupa.com/t/how-do-i-get-rid-of-this-top-gap-opera-browser/186735 "2006-04-24T08:18:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dave](https://avatars.discourse-cdn.com/v4/letter/d/ee7513/32.png) [@Dave](https://forum.kirupa.com/u/Dave)\
**Post date:** [April 24, 2006, 8:18am UTC](https://forum.kirupa.com/t/how-do-i-get-rid-of-this-top-gap-opera-browser/186735/1 "2006-04-24T08:18:31Z")

</div>

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?

```auto
<!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>

```

---

<div class="post-metadata">

**Author:** ![soulty](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/soulty/32/105_2.png) [@soulty](https://forum.kirupa.com/u/soulty)\
**Post date:** [April 24, 2006, 9:24am UTC](https://forum.kirupa.com/t/how-do-i-get-rid-of-this-top-gap-opera-browser/186735/2 "2006-04-24T09:24:15Z")

</div>

try padding:0 0 0 0; in the body, solved a issue i had with ie might be the same with opera.

---

<div class="post-metadata">

**Author:** ![Dave](https://avatars.discourse-cdn.com/v4/letter/d/ee7513/32.png) [@Dave](https://forum.kirupa.com/u/Dave)\
**Post date:** [April 24, 2006, 9:40am UTC](https://forum.kirupa.com/t/how-do-i-get-rid-of-this-top-gap-opera-browser/186735/3 "2006-04-24T09:40:56Z")

</div>

Didnt work man!

---

<div class="post-metadata">

**Author:** ![soulty](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/soulty/32/105_2.png) [@soulty](https://forum.kirupa.com/u/soulty)\
**Post date:** [April 24, 2006, 9:52am UTC](https://forum.kirupa.com/t/how-do-i-get-rid-of-this-top-gap-opera-browser/186735/4 "2006-04-24T09:52:55Z")

</div>

jump on msn punk! 😛

---

<div class="post-metadata">

**Author:** ![J11](https://avatars.discourse-cdn.com/v4/letter/j/3bc359/32.png) [@J11](https://forum.kirupa.com/u/J11)\
**Post date:** [April 24, 2006, 10:03am UTC](https://forum.kirupa.com/t/how-do-i-get-rid-of-this-top-gap-opera-browser/186735/5 "2006-04-24T10:03:37Z")

</div>

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\>

---

<div class="post-metadata">

**Author:** ![soulty](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/soulty/32/105_2.png) [@soulty](https://forum.kirupa.com/u/soulty)\
**Post date:** [April 24, 2006, 10:05am UTC](https://forum.kirupa.com/t/how-do-i-get-rid-of-this-top-gap-opera-browser/186735/6 "2006-04-24T10:05:17Z")

</div>

^^ ha! :bad:

😛
