On 1 Mar 2004 10:24:23 -0800, bdwise <br************@hotmail.com> wrote:
Problem. This shows no scrollbars in IE6 but does show them in
Netscape 7.1. How to fix it so I never get a scrollbar in IE and
Netscape?
Thanks.
1) See what changes when you add the dtd to the top...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
Major changes!
2) Stuff like "width: 560 ;" - 560 pixels? Inches? Ems? How does the
computer know? Unlike height and width in HTML it isn't always pixels, so
you need to have 560px.
3) padding: 0 0 0 0 ; redundant. padding: 0; is enough. 0 alone is fine,
but anything above 0 needs a measurement.
I recommend validating your code at
http://validator.w3.org/file-upload.html (you'll need to choose a DTD and
charset) and see what errors. Add a title just to prevent that error from
coming up (it'll say something like "the head isn't finished"). Also add
measurements to all the CSS values that require them and go to
http://jigsaw.w3.org/css-validator/v...or-upload.html to check it.
Then if the problem persists, repost with a URL of where you have it
uploaded so it's easy for us to check it. A list of (invalid) code is
really hard to diagnose, while an active document is much simpler.