45 users online (0 members and 45 guests)  

Thread: Opera problems


  Results 1 to 3 of 3

Related

  1. Div Tag Problems    Forum: HTML Forum
    Replies: 0
  2. getAttribute() & Netscape/Mozilla/Opera etc...    Forum: Javascript Forum
    Replies: 2
  3. Anyone heard about an Opera Browser?    Forum: HTML Forum
    Replies: 3
  4. Opera 7 is spyware? Or is this old news?    Forum: Webmaster Ethics
    Replies: 4
  1. #1
    LocoDave's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Nov 2002
    Location
    Australia
    Posts
    64

    Opera problems

    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?

    HTML Code:
    <!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>

  2. #2
    coothead's Avatar
    bald headed old fart

    Status
    Offline
    Join Date
    Aug 2003
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    732

    Re: Opera problems

    Hi there LocoDave,

    try it like this...
    Code:
    
    body {
        margin:0;
        padding:0;    /* this is the Opera requirement */
     }
    

  3. #3
    LocoDave's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Nov 2002
    Location
    Australia
    Posts
    64

    Re: Opera problems

    Yes! It worked, thank you!!



Tags for this Thread