File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Div scrollbar problem in IE7 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Div scrollbar problem in IE7" Watch "Div scrollbar problem in IE7" New topic

Div scrollbar problem in IE7

smee bond
Ranch Hand

Joined: Sep 29, 2007
Posts: 34

I am using the following code to get a scrollable table within a <div>. It works fine in Firefox but does not work at all in IE7. In IE7, all the values are displayed continuously without a scrollbar.
Can anyone suggest how to fix this problem?

<style type="">


<div class="scrollWrapper" align="center">
<table class="scrollable">
<th>First Name</th>
<th>Last Name</th>



Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63844

Please be sure to use UBB code tags when posting code to the forums. Unformatted code is extermely hard to read and most people will just go elsewhere. Please read this for more information.

You can go back and change your post to add code tags by clicking the .

[Asking smart questions] [About Bear] [Books by Bear]
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
You need to set the type to text/css

smee bond
Ranch Hand

Joined: Sep 29, 2007
Posts: 34
Thanks a lot Eric for the suggestion. I had over-looked that part! Now it works!

Sorry for the improper indentation. Will post it right from next time.

Thank you all...
I agree. Here's the link:
subject: Div scrollbar problem in IE7
It's not a secret anymore!