Web Hosting Talk







View Full Version : object with no scrolling?


imadmin
06-07-2009, 03:44 PM
how can i add NO scroll bars to this please


<object id="page" type="text/html"
data="something.html"
width="500" height="600">
<p>Oops! That didn't work...</p>
</object>

Replicada
06-07-2009, 06:43 PM
I did a bit of googling and came accross this archieve post about other users having issues with scrollbars on objects. The issue seems to only arise in older models of Internet Explorer, but the only real hack to impose is to use the following:


for the object tag there is a solution:

for example:
page.html : this page calls the object.
<!DOCTYPE html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Test objet</title>
</head>
<body>
<OBJECT type="text/html" data="object.php" width="160px" height="600px">
</OBJECT>
</body>
</html>

and put this css in object.php
HTML {
margin: 0;
overflow:auto;
border: none;
}

body {
margin: 0;
}


Source:
http://www.webdeveloper.com/forum/archive/index.php/t-76.html

I can't comment on wether this will work, but it's worth a try, thanks for giving me another reason to hate Internet Explorer! Hahar

Dan