Toggle navigation
Bootsnipp
Bootstrap
For
CSS Frameworks
Bootstrap
Foundation
Semantic UI
Materialize
Pure
Bulma
References
CSS Reference
Tools
Community
Page Builder
Form Builder
Button Builder
Icon Search
Dan's Tools
Diff / Merge
Color Picker
Keyword Tool
Web Fonts
.htaccess Generator
Favicon Generator
Site Speed Test
Snippets
Featured
Tags
By Bootstrap Version
4.1.1
4.0.0
3.3.0
3.2.0
3.1.0
3.0.3
3.0.1
3.0.0
2.3.2
Register
Login
"UL Tables"
Bootstrap 3.3.0 Snippet by
marshallx
3.3.0
table
Preview
HTML
CSS
JS
View Full Screen
Fork
Fork this
21.9K
 
4 Fav
Post to Facebook
Tweet this
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="listWrap"> <ul class="list"> <li> <span>ID</span> <span>Name</span> <span>Logins</span> <span>Role</span> <span>Actions</span> <span></span> </li> <li> <span>23</span> <span>Harry Giles</span> <span>4341</span> <span><span class="label label-warning">Manager</span></span> <span> <div class="btn-group btn-group-xs" role="group" aria-label="..."> <button type="button" class="btn btn-default">Edit</button> <button type="button" class="btn btn-default" disabled>Delete</button> </div> </span> <span></span> </li> <li> <span>543</span> <span>Susan Crown</span> <span>10032</span> <span><span class="label label-default">Guest</span></span> <span> <div class="btn-group btn-group-xs" role="group" aria-label="..."> <button type="button" class="btn btn-default">Edit</button> <button type="button" class="btn btn-default" disabled>Delete</button> </div> </span> <span></span> </li> <li> <span>43</span> <span>Barry Smith</span> <span>91</span> <span><span class="label label-primary">Engineer</span></span> <span> <div class="btn-group btn-group-xs" role="group" aria-label="..."> <button type="button" class="btn btn-default">Edit</button> <button type="button" class="btn btn-default" disabled>Delete</button> </div> </span> <span></span> </li> <li> </li> </ul> </div> </div> <script src="http://code.jquery.com/color/jquery.color-2.1.2.min.js" integrity="sha256-H28SdxWrZ387Ldn0qogCzFiUDDxfPiNIyJX7BECQkDE=" crossorigin="anonymous"></script>
.container { width: 100%; height: 100%; background-color: #d4d3d3; padding: 20px; } .listWrap { height: 800px; width: 1000px; } .list { list-style: none; margin: 0; padding: 0; display: table; white-space: nowrap; width: 100%; } .list li { background-color: #f0f0f0; display: table-row; color: #5c5c5c; } .list li:nth-child(odd) { background-color: #f2f2f2; display: table-row; font-size: 9pt; color: #5c5c5c; } .list li:nth-child(odd):hover { background-color: #dadada; } .list li:nth-child(even) { background-color: #e8e8e8; display: table-row; font-size: 9pt; color: #5c5c5c; } .list li:nth-child(even):hover { background-color: #dadada; } .list li:nth-child(1) span:first-child { border-top-left-radius: 6px; } .list li:nth-child(1) span:last-child { border-top-right-radius: 6px; } .list li:nth-child(1) { background-color: #201c2b; text-transform: uppercase; font-size: 8pt; font-weight: bold; color: #b8b5c0; } .list li:nth-child(1):hover { } .list li:nth-child(1) span { border-bottom: 2px solid #7d5bbe; padding: 14px; } .list span { text-align: left; display: table-cell; padding: 6px; vertical-align: middle; } .list span:nth-child(2) { }
$( document ).ready(function() { initEvents(); }); function initEvents() { $(".list").hover(function(){ $(".list li:first span").stop().animate({borderWidth: "5", backgroundColor: "#3f3659", color: "#e5e3e8"},{duration: 170, complete: function() {}} ); }, function () { $(".list li:first span").stop().animate({borderWidth: "2", backgroundColor: "#201c2b", color: "#b8b5c0"},{duration: 170, complete: function() {}} ); }); } function animateTable(e) { }
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76