Category Archives: CSS

Bootstrap Datepickers

Here is a quick code snippet showing how to initiate a Bootstrap date picker control when elements other than the input are clicked.

ASP.Net Validators And The DOM

How do you stop ASP.Net Validation controls taking up precious space in the DOM when there are no errors? Don’t create complex classes and overrides. Just tweak the validation control code and some easy CSS.

Useful CSS Snippets For Your Core Stylesheet

Here are some useful “template” CSS snippets for you to add to your core CSS file. When I say core, I mean a default CSS file that you can port between projects. This file simply does layout, global styles and mixins.

Bootstrap and Transitions

For those of you who use Twitter Bootstrap at all, you may have come across this problem already. If you haven’t seen this issue, here is an explanation so you know what to expect if it does happen. I found an issue where Bootstrap transitions interfere with my later transitions. Here is a fix to make your transitions stick to your elements.

Client-side Form Validation

Every form needs to be validated in one way or another. The most basic form of validation is check that all required fields have been given values. Here is a script that should help with that.

Select All Checkboxes

Everyone works with grids. A lot of times, these grids have checkboxes to allow the user to perform an action on multiple items in the grid. Here is a quick overview of handling checkboxes in a grid situation.