Posts Tagged ‘css’

Calculate text width and height with JavaScript

By David Pratt / Tags: , , / 5 Comments » / Published: 22-04-10

A tutorial that shows you how to measure the height and width of a text element using JavaScript.

Removing unwanted stylesheets from Drupal

By David Pratt / Tags: , / 3 Comments » / Published: 16-12-09

A way of stripping unwanted stylesheets out of a Drupal site by using a preprocess function in the template.php file.

Dots appearing around images when you click them

By David Pratt / Tags: , / No Comments » / Published: 22-11-09

To fix this, set the outline property of the anchor element to zero, like so: a{outline:0};

Wrap text on an HTML input button with CSS

By David Pratt / Tags: , / 7 Comments » / Published: 19-11-09

You can wrap text on a HTML button by using the white-space:normal; CSS rule. This tutorial shows you how.