Solved

bootstrap table

Posted on 2016-11-22
5
32 Views
Last Modified: 2016-11-28
I have a table and it has a scroll bar at the bottom (left to right). How can I get the scroll bar to show up at the top of the table as well?

<div class="table table-responsive">
<table width="500" class="table table-striped table-hover table-condensed">
..... long content that's why it needs to scroll at the top and bottom ...
</table>
</div>

Open in new window

0
Comment
Question by:Robert Saylor
  • 3
  • 2
5 Comments
 
LVL 9

Expert Comment

by:Karen
ID: 41898369
Hi Robert,
This is determined by a CSS property. It is hard to tell without knowing your full CSS but you could try something like

<div class="table table-responsive" style="overflow:auto">

Open in new window

0
 

Author Comment

by:Robert Saylor
ID: 41899131
thanks but the scroll bar is still at the bottom.

As far as CSS I am using:

bootstrap, font awsome, jquery
    <!-- Bootstrap Core CSS -->
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap3-dialog/1.35.3/css/bootstrap-dialog.css" rel="stylesheet">

    <!-- Custom Fonts -->
    <link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">

   <link rel="stylesheet" href="jquery-ui-1.10.3/themes/base/jquery.ui.all.css">

  <link rel="stylesheet" type="text/css" href="css/jquery.timepicker.css" />

Open in new window

0
 
LVL 9

Accepted Solution

by:
Karen earned 500 total points
ID: 41901019
oops sorry I misread the question.
There is a jquery plugin that does this for you:
https://github.com/avianey/jqDoubleScroll
0
 

Author Comment

by:Robert Saylor
ID: 41904857
I gave doubleScroll a try but the scroll bar still only shows on a bottom. Will mess with it some more tomorrow.
0
 

Author Closing Comment

by:Robert Saylor
ID: 41904864
I messed with it some more and got it working.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
There are many Password Managers (PM) out there to choose from. PM's can help with your password habits and routines, but they should not be a crutch you rely on too heavily. I also have an article for company/enterprise PM's.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

28 Experts available now in Live!

Get 1:1 Help Now