Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-06-2004, 06:06 PM
splinter's Avatar
WebProWorld Pro
 

Join Date: Jul 2003
Location: UK
Posts: 261
splinter RepRank 0
Default 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.
Reply With Quote
  #2 (permalink)  
Old 03-07-2004, 05:29 AM
mikmik's Avatar
WebProWorld 1,000+ Club
 

Join Date: Aug 2003
Location: Edmonton, AB, Canada
Posts: 3,406
mikmik RepRank 1
Default

Hey, splinter.
I start every stylesheet like this:
Quote:
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)
__________________
What I am is what I am, are you what you are, or what.
Eddie Brickel
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0