-
Notifications
You must be signed in to change notification settings - Fork 296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<thead> displacement within a scrollable block and responsive-table bootstrap #134
Comments
This is the setup for my table: <div class='table-responsive table-short'>
<table class='table table-striped table-hover' id='records'>
<thead>
<tr>
<th>ID</th>
<th>First Name</th>
<th>Last Name</th>
<th>Check in</th>
<th>Check out</th>
<th>House number</th>
<th>Guests</th>
<th>Phone Number</th>
<th>Email</th>
<th>Address</th>
<th>City</th>
<th>State</th>
<th>Zip</th>
<th>Affiliated Church</th>
<th>Notes</th>
<th></th>
</tr>
</thead>
... |
Have the same issue. See example code here: http://jsfiddle.net/stFcx/4028/ The header pops out of its "table-responsive div". BR Matthias |
+1 |
Here's my fix. Works really well.
|
@bbearche could you provide the html with your fix? That is not working for me. |
having same prob. please share your solutions if you happened to resolve this issue... |
can you explain your code or share your html/js? thanks! |
This worked for me
|
When using Bootstrap 3
responsive-table
class it helps me when I need to scroll sideways since my table is quite large.I want to use the
StickyTableHeaders
so that I can know which column I am looking at, but when I scroll sideways to the right, thethead
does not follow accordingly, it does not move with the table; it moves much further and leaves a large gap between it and the right side of the table.The
thead
element also leaves theresponsive-table
div.I call the
stickyTableHeaders
as follows:I have some pictures of what it looks like on my Dropbox. I have not publish my site yet just for neatness sake.
As you can see below.
The text was updated successfully, but these errors were encountered: