473,408 Members | 1,982 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Vertical Scrollbars

How to add vertical Scrollbars to both sides of a Table in html?
Dec 15 '11 #1
3 1775
HTML Syntax

Expand|Select|Wrap|Line Numbers
  1.  <td id="content-containertable" class="override">
  2.     <div>
  3.     [lots of lines]...<br/>...
  4.     </div>
  5.     </td>
CSS Syntax

Expand|Select|Wrap|Line Numbers
  1. #content-containertable.override{
  2.     width:150px;
  3.     border-color:Silver;
  4.     border-style:Double;
  5.     background-color:Lime;
  6.     }
  7.     #content-containertable.override div{
  8.     height:200px;
  9.     overflow:scroll;
  10.     }
Try it..It may help u.
Dec 15 '11 #2
Hello, to get a good answer, it's usually helpful to paste in your source code for us to see. You can paste it right in the question (make sure you formati it) or you can link to a live example on your own server or at www.jsfiddle.net :)
Dec 15 '11 #3
This is only possible on one side and the scrollbar only appears if the content doesn't fit in the defined height of the table. Maybe there is a plugin for displaying 2 scrollbars but what is the sense of this ?
Dec 15 '11 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: CJM | last post by:
I've been trying to tweak the design of a few pages in one of my ASP apps... I'm making sure that the layout is reasonable for resolutions between 800x600 and 1024x768. Since it's almost all...
1
by: Gawelek | last post by:
Is it possible to get to know if certain scrollbar is hidden or not? Of course without using WinApi :) -- Gawel ------------------------------- Pierwszy łyk z pucharu nauk przyrodniczych...
0
by: Vaughn | last post by:
In my "Test" PC (that only contains framework v1.1), the application does not display the vertical scrollbars when the amount of rows goes beyond the space reserved for the datagrid. So there's...
0
by: Jeff | last post by:
Hi - How can I have a DataList display on an ASP.NET page with a limited height and vertical scrollbars? My aspx code is below (no scrollbars). Am I missing a property somewhere? Thanks...
1
by: Antony | last post by:
Hi, this may sound silly but I want to have some scrollbars used by a user-control that is resized. And what I don't want to do is, in the user-control code, for example Me.AutoScrollMinSize=new...
1
by: Dave Taylor | last post by:
I have a StatusBar control docked to the bottom of the screen, a horizontal splitter control just above that, and then a DataGrid control that has its docking property set to Fill above that. (I'm...
2
by: MrNobody | last post by:
I have been struggling with .NET's scrollbars because when I use them I can't seem to get them to go to their maximum value. Searching on the web it looks like the maximum Value you can get on...
0
by: inandout | last post by:
Hi, I was wondering if anyone can help me with this. I have a listview that is specified to a size of: 348W x 308H When items are added to it, no problems. However when items continue to be...
1
by: houghm | last post by:
Hello, I'm having a problem and I wonder if anyone can help? I have a div on which I have specified {overflow-y:auto; overflow-x:hidden;}. This div contains a table with a varying number of...
1
by: aswinm | last post by:
Hi All, I have a sample page in which I am enclosing a <Select within a DIV, The purpose is to have a horizontal scrollbar for the <Select. The page is working perfectly fine. But I notice that...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.