4 replies [Last post]
Shark Daddy
Offline
newbie
Last seen: 16 years 28 weeks ago
Joined: 2003-05-25
Posts: 10
Points: 0

It's a simple question, but I can't figure it out (this problem only rears its head in IE)... I tried Javascript...

<script type="text/javascript">
window.onload = function()
{
  pageframe.body.style.border = 'none';
  pageframe.body.style.margin = '0';
  pageframe.body.style.padding = '0';
  pageframe.body.style.overflow = 'hidden';
}
</script>

...but IE doesn't like it. Anybody have any CSS or other solutions?

Here is the page.

blakems
blakems's picture
Offline
Enthusiast
UTah, USA
Last seen: 16 years 35 weeks ago
UTah, USA
Timezone: GMT-7
Joined: 2003-04-07
Posts: 60
Points: 0

How to remove &lt;object&gt; border/scrollbar in IE?

You can use frames and that will get rid of the scroll bar in IE's viewport.

-bMs-
http//www.blakems.com !important;

Shark Daddy
Offline
newbie
Last seen: 16 years 28 weeks ago
Joined: 2003-05-25
Posts: 10
Points: 0

How to remove &lt;object&gt; border/scrollbar in IE?

Unfortunately frames are not part of that specification. Using object is even worse because of IE's bugs not only in its layout (which you've seen), but also that it doesn't work unless ActiveX is on. Oops.

In case anyone is wondering, I came near to fixing it by enclosing the object in a div with fixed size and hidden overflow, which was smaller than it. Only one line on the left remains.

modeman
Offline
newbie
Texas
Last seen: 16 years 13 weeks ago
Texas
Joined: 2003-09-10
Posts: 2
Points: 0

Scroll Bar

Don't know that this will help you, but, This CSS will remove the Grayed out Scroll Bar on IE...

html,body { overflow: auto; }
html>body { overflow: visible; }
html { height: 100%; }

Cheers,
Paul

thomas
Offline
newbie
Last seen: 14 years 37 weeks ago
Joined: 2005-03-23
Posts: 1
Points: 0

How to remove &lt;object&gt; border/scrollbar in IE?

the problem is in the way ie renders the object tag compared to other browsers. to remove the border, you must set style="border: none;" or similar css in the <body> of the object's SOURCE document.