Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within HTML Pages with CSS and JavaScript
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Tim Cooke
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Liutauras Vilda
Sheriffs:
Rob Spoor
Junilu Lacar
paul wheaton
Saloon Keepers:
Stephan van Hulst
Tim Moores
Tim Holloway
Carey Brown
Scott Selikoff
Bartenders:
Piet Souris
Jj Roberts
fred rosenberger
Forum:
HTML Pages with CSS and JavaScript
How To Show a Vertical Scrollbar Inside FIELDSET
JiaPei Jen
Ranch Hand
Posts: 1309
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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:
<fieldset style="scrollbar-3dlight-color:#FFFFFF;scrollbar-arrow-color:#000000;scrollbar-base-color:#FF9999;scrollbar-darkshadow-color:#000000;scrollbar-face-color:#000000; scrollbar-highlight-color:#000000;scrollbar-shadow-color:#0033CC}; "> <table> ..... ..... </table> </fieldset>
but the scrollbar simply does not show in the browser. What should I fix to display the scrollbar?
Bear Bibeault
Sheriff
Posts: 67641
173
I like...
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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.
[
Asking smart questions
] [
About Bear
] [
Books by Bear
]
JiaPei Jen
Ranch Hand
Posts: 1309
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Thanks for your reply. But, it does not work. I still do not get the scrollbar in IE6.
<fieldset> <legend align="left"> <b>Leads & Events</b> </legend> <br/> <div style="overflow:auto;scrollbar-3dlight-color:#FFFFFF;scrollbar-arrow-color:#000000;scrollbar-base-color:#FF9999;scrollbar-darkshadow-color:#000000;scrollbar-face-color:#000000;scrollbar-highlight-color:#000000;scrollbar-shadow-color:#0033CC;"> <table> ..... ..... </table> </div> <br/> </fieldset>
Bear Bibeault
Sheriff
Posts: 67641
173
I like...
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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.
[
Asking smart questions
] [
About Bear
] [
Books by Bear
]
JiaPei Jen
Ranch Hand
Posts: 1309
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
It works now. Thank you very much.
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Is There a Vertical Scrollbar for the selectManyListbox?
How To Make FIELDSETs Share Their Borders
Want to Stop Text Wrap Around in Table Cells
What Could Prevent FIELDSET From Displaying in the Browser?
How to highlight a hyperlink?(Urgent)
More...