Skip to content

Globally Sticky Table Headers by damenleeturks

Details

Authordamenleeturks

LicenseNo License

Categoryuserstyles,tables,sticky,parameterized

Created

Updated

Size598 B

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Simply makes table headers stick to the top of your window when you scroll. Customizable distance from the top.

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name           sticky table headers
@namespace      github.com/openstyles/stylus
@version        1.0.1
@description    Simply makes table headers stick to the top of your window when you scroll. 
@author         damenleeturks
@preprocessor stylus
@var          	number     	TopDistance 		"Distance from the Top" 		[0, 0, null, 1,'px']


==/UserStyle== */
@-moz-document regexp(".*?") {
	th {
		background: white;
		position: sticky;
		top: TopDistance;
		/* Don't forget this, required for the stickiness */
		box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.4);
	}
}

Reviews

No reviews yet.