Skip to content

Instantly share code, notes, and snippets.

@nefah
nefah / horizontal-scrolling-table-with-fixed-first-column.markdown
Created September 5, 2019 23:27
Horizontal scrolling table with Fixed first column

Horizontal scrolling table with Fixed first column

Answer to question on Sitepoint forums: https://www.sitepoint.com/community/t/table-scrolling-horizontally-and-vertically/262865/12

I've only just knocked this up a few minutes ago so needs testing.

It also assumes that you won't be having form fields or the like in the cells because the way this works is that the table is cloned and then positioned on top of the original table with absolute positioning. The original table is in a div that allows the table to scroll horizontally while the cloned div is placed out of that context and does not scroll.

The cells in the cloned table are hidden with css except for the first column. That allows the illusion of a fixed first column.

@nefah
nefah / bootstrap-button-loading.markdown
Created August 20, 2019 21:21
Bootstrap Button Loading
@nefah
nefah / index.html
Created August 20, 2019 19:59
Simple bootstrap modal spinner/loader
<h1 class="text-center">Turn classic bootstrap modal into loading popup <small>WHY? Because bootstrap is freakin awesome!</small></h1>
<div class="row">
<div class="col-sm-6">
<div class="button-wrap">
<!-- Button trigger modal -->
<button type="button" class="btn btn-default btn-lg btn-block" id="just_load_please">
Open loading modal<br>
<small>This function can also be triggered through jquery event listener or inside a juqery function</small>
</button>
</div>
@nefah
nefah / index.html
Created August 20, 2019 05:32
search
<div class="search-results">
<div class="container">
<div class="fluid-container">
<div class="col col3">
<div class="search-form form-redux">
<input type="text" class="search-box" placeholder="search" />
</div>
<div class="subnav search-suggestions">
<ul>
@nefah
nefah / borderless-text-input.markdown
Created August 18, 2019 19:41
Borderless Text Input
@nefah
nefah / index.
Created August 18, 2019 19:36
Rotated Table Headers
<table class="table table-header-rotated">
<thead>
<tr>
<!-- First column header is not rotated -->
<th></th>
<!-- Following headers are rotated -->
<th class="rotate"><div><span>Column header 1</span></div></th>
<th class="rotate"><div><span>Column header 2</span></div></th>
<th class="rotate"><div><span>Column header 3</span></div></th>
<th class="rotate"><div><span>Column header 4</span></div></th>
@nefah
nefah / bootstrap-4-modal-with-form.markdown
Last active August 18, 2019 18:40
Bootstrap 4 Modal with Form
@nefah
nefah / index.html
Created August 18, 2019 18:32
Single Element CSS-Only Absolute Center Overlay Spinner
<div class="loading">Loading&#8230;</div>
@nefah
nefah / full-screen-loader.markdown
Created August 18, 2019 17:53
Full Screen loader
@nefah
nefah / bootstrap-full-page-transitions.markdown
Last active August 18, 2019 17:56
Bootstrap Full Page Transitions