Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

top margin in Opera 7

Status
Not open for further replies.

myatia

Programmer
Nov 21, 2002
232
0
0
Hi, all,

I am trying to get the body margin to be 0px for my page, but in Opera 7, the top margin is about 15px or so. The page looks fine in IE, Netscape, and Firefox.

I have set the margin and padding to 0, as shown below:

Code:
html {
margin:0px;
padding:0px;
height:100%;
}

body {
margin:0px;
padding:0px;
background-color:#E7E0C6;
font-family: helvetica, arial, sans-serif;
height: 100%;
}

If it helps, here are links to the page and stylesheet in question:

HTML page:

Stylesheet:

Also, the page looks fine in Opera if I'm viewing it with Windows XP -- the problem is only on Windows NT (that I'm aware of).

If anyone has any advice, I'd really appreciate it!

Thanks,

Misty
 
Hi,

I figured this out.

The first line after <body> was

Code:
<script type="text/javascript">mmLoadMenus();</script>

I moved this inside a div, and the extra top margin disappeared.

Misty
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top