www.webdeveloper.com
Results 1 to 9 of 9

Thread: object & scroll bar

  1. #1
    Join Date
    Nov 2002
    Posts
    421

    object & scroll bar

    when including an html page as an object (even when the size is larger than the content) in IE 6 you get a greyed out vertical scrollbar (not the horizontal though). In NS 7 the display is correct - no bars.

    There are no valid scroll attributes for the object tag. This is likely just an IE problem that I will have to live with.

    But . . . anyone know any tricks to get rid of it?
    Last edited by Beach Bum; 11-22-2002 at 02:43 PM.

  2. #2
    Join Date
    Nov 2002
    Posts
    421
    Actually, visible is the default - but I tried specifying it anyway and I tried hidden in order to understand the options - no joy.

  3. #3
    Join Date
    Nov 2002
    Posts
    631
    To get rid of the scrollbar for the HTML page, in the body tag put scroll="no". To get rid of scrollbars for a particular element, in a CSS script, type overflow:hidden;. Hope that helps!

  4. #4
    Join Date
    Nov 2002
    Posts
    421
    that does not work for an object. read the prior post. but a good thought!

  5. #5
    Join Date
    Nov 2002
    Location
    England
    Posts
    275
    Personally I haven't had that problem (you haven't got a link to your pages have you?), but I can only elaborate on the previous posts and say try overflow:auto or (probably not what you want) overflow:scroll

  6. #6
    Join Date
    Nov 2002
    Location
    XYZZY - UK
    Posts
    1,760
    I believe the real problem is actually Micro$oft, yes the autoflow would work for a <textbox>.

    However we are considering the <object> element I have seen this question before when some people were testing the XHTML 2.0 proposals and trying to insert an image via <object> obviously Mozilla gets things right.

  7. #7
    Join Date
    Nov 2002
    Posts
    984
    There is a general hack to get IE to remove it's crappy vertical scrollbar when it's not needed.

    However it's not valid CSS and will NOT pass validation.

    /* IE scrollbar fix, Invalid CSS */
    body,html { overflow-y: auto }

    I assume the same can be applied to get rid of scrollbars for <object>. Not tested though.
    // Stefan Huszics

  8. #8
    Join Date
    Nov 2002
    Posts
    421
    Stefan -

    thanks for the post. but no luck with an html object. still there.

  9. #9
    Join Date
    Oct 2006
    Posts
    1
    for the object tag there is a solution:

    for example:
    page.html : this page calls the object.
    HTML Code:
    <!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
    Code:
    HTML {
    	margin: 0;
    	overflow:auto;
    	border: none;
    }
    
    body {
    	margin: 0;
    }
    Last edited by cassy; 10-18-2006 at 03:44 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles