[thelist] Horizontal Scroll in FF but not IE

Maximillian Schwanekamp lists at neptunewebworks.com
Mon Sep 12 22:33:39 CDT 2005


Jeff Howden wrote:
> Christian,
>>>I have a problem with a horizontal scroll bar
>>>http://www.ckapublishing.com/p.php?id=2
>>>I've hunted through the code and style sheet, but cant
>>>figure out what could be causing this. Is there a
>>>glaring error there that I am failing to see?
> 
> Start by adding a doctype.  Then, validate to that doctype.  Once all the
> validation errors are addressed, ask thelist again if the scrollbar
> persists.

Apart from validating your HTML (the CSS validated, at least on a 
cursory check).  The problem in FF is that you're trying to style the 
<html> element.  Take that out of the first declaration in your CSS. 
You're likely to get stranger errors than that in some browsers, trying 
to mess with the HTML element for no good reason.

The classic article on doctypes:

-- 
Max Schwanekamp http://www.neptunewebworks.com/



More information about the thelist mailing list