Cheryl Perkins wrote:

I was asked to create and maintain a website. I wanted to try out CSS,
although I eventually resorted to tables for layout. I'm a beginner at
this sort of thing, learning on my own. Anyway, the site's been up for a
while, and I'm thinking that it's time to make improvements. It's at
http://www.med.mun.ca/surgery/

You should get rid of the width: 100%; on the body element. In conjunction with the margin-left: 5%; it produces horizontal scroll bars on both IE6 and Firefox 0.8.


100% width to the body element is the width of the viewport. In both the W3C and the Microsoft box model margins don't count towards the width. So when you also stick margins in with a 100% width, you are requesting that the browser display more than a viewport worth horizontally, thereby producing a scroll bar.


*****************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
*****************************************************




Reply via email to