Submit Your Article Forum Rules

Results 1 to 2 of 2

Thread: A few odd questions.

  1. #1
    Senior Member splinter's Avatar
    Join Date
    Jul 2003
    Posts
    118

    A few odd questions.

    When viewing my site in Opera 6+7 there is a huge gray space to the right-hand side. This does NOT happen on my hard-drive. Is it possible that my web host is causing this? If not, how can I fix it?

    One last question. I am using XHTML Strict DOCTYPE so I cannot use marginheight="0" etc. etc. in <body>. I have used margin: 0px; in my style sheet under the body section. This works fine in IE and Netscape, but not Opera. How can I fix this? I have also tried margin-top: 0px; but to no avail.

  2. #2
    WebProWorld MVP mikmik's Avatar
    Join Date
    Aug 2003
    Posts
    1,557
    Hey, splinter.
    I start every stylesheet like this:
    html {
    padding-right: 0px;
    padding-left: 0px;
    padding-bottom: 0px;
    padding-top: 0px;
    margin: 0px;
    }
    body {
    background: #ffffff;
    margin: 0px;
    font: 100% Geneva, Arial, sans-serif;
    color: #000000;
    padding: 0px;
    width: 100%;
    }
    I never have a problem with any browser, Opera included.
    I put margins around subsequent containers and divs.
    Including the "html" seems to take care of the 'rogue' browsers, and separating
    the padding properties into all 4, with the 'zero' values seems to get everybody. It may not be necessary - probably could use shorthand i.e. html{padding:0;
    margin:0;}
    but I am not sure every browser can read shorthand. LOL
    Let me know how it goes, I have never tested on Mac IE5.2.
    :O)
    Babies don't need a vacation, but I still see them at the beach... it pisses me off! I'll go over to a little baby and say 'What are you doing here? You haven't worked a day in your life!'
    Steven Wright

Similar Threads

  1. Two questions
    By A. Smith in forum Submit Your Site For Review
    Replies: 3
    Last Post: 06-16-2006, 02:18 PM
  2. First two questions
    By Markll in forum Internet Industry
    Replies: 5
    Last Post: 08-19-2004, 02:43 PM
  3. Three Questions in One
    By pne in forum Search Engine Optimization Forum
    Replies: 3
    Last Post: 07-19-2004, 04:55 AM
  4. Hi! I'm New and Have Questions...
    By kristisayles in forum Introductions
    Replies: 2
    Last Post: 01-11-2004, 10:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •