467,077 Members | 610 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,077 developers. It's quick & easy.

Netscape Scrollbar for Object?

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.

<html>
<head>
<style type="text/css">
#divp2
{
position: absolute ;
overflow: hidden ;
background-color: Transparent ;
width: 560 ;
height: 220 ;
z-index: 7 ;
left: 440 ;
top: 97 ;
vertical-align: top ;
padding: 0 0 0 0 ;
margin: 0 0 0 0 ;
}
#divp3
{
position: absolute ;
overflow: hidden ;
background-color: #000AAC ;
width: 560 ;
height: 230 ;
z-index: 4 ;
left: 140 ;
top: 30 ;
vertical-align: top ;
padding: 0 0 0 0 ;
margin: 0 0 0 0 ;
}
</style>
</head>
<body>
<div id="divp2">
<object title="page#2" data="p2.html" width="80" height="80"
frameborder="0" scrolling="no">
</object>
</div>
<div id="divp3">
<object data="p3.html" data="p3.html" width="190" height="80"
frameborder="0" scrolling="no">
</object>
</div>
</body>
</html>
Jul 20 '05 #1
  • viewed: 2524
Share:
1 Reply
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.
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Christopher Benson-Manica | last post: by
4 posts views Thread by blackhawk | last post: by
2 posts views Thread by aabdelwahab@comcast.net | last post: by
2 posts views Thread by David McDivitt | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.