Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How To Show a Vertical Scrollbar Inside FIELDSET

 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use IE 6. My FIELDSET works fine. I have everything displayed as expected. Now I am trying to show a vertical scrollbar inside of a FIELDSET:

but the scrollbar simply does not show in the browser. What should I fix to display the scrollbar?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64633
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just adding CSS to an element will not allow it to display a scrollbar.

You can either embed an iframe in the fieldset, or a div with overflow set to auto.
 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply. But, it does not work. I still do not get the scrollbar in IE6.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64633
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First of all, be a good sprt and move all the styles off of the element and into a <style> element.

Secondly, you need to set a height for the div for the scrollbar to appear.
 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It works now. Thank you very much.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic