Programming

The CSS Sibling Selector

Posted on

There is often a bit of confusion surrounding the CSS sibling selector, or ~ as it is known to its friends. Here is how it works. This CSS translated into English says: If there are is a paragraph next to another paragraph inside a division, make the text red Here is an example HTML snippet […]

Programming

Get Elements Grouped By a CSS Value

Posted on

The following script allows you to group all elements on a web page by a particular CSS value. So for example, if you specify ‘fontFamily’, you’ll get a list of font families used on the website, and a list of all elements using each one. You can specify other attributes if you would like to […]

Programming

Generate Multiple Themes From the Same LESS File

Posted on

So you have a CSS theme written using LESS. A simple example would be like the example below… you’ve extracted your variables into a file named “variables.less” and you use an import to make those variables available to your main stylesheet. If you decide to change something important, you can do that in the variables […]

Programming

Make The RESTClient Body Input Bigger

Posted on

RESTClient is a useful Firefox extension for sending HTTP REST messages to a service. As well as a useful and simple interface for sending requests, it also lets you store requests to re-use again later. If you are writing REST services, it is a useful tool to have lying around. The only problem I have […]

Programming

Website Go Faster Stripes

Posted on

My early spring-clean has been going on for a while. I have been gradually deleting things to make the site go faster. As usual, if you don’t keep a close watch on things they start to bloat. My site had reached a whopping 400kb for an empty-cache first-load and spanned far too many network requests […]

Programming

Goodbye Old Browsers

Posted on

I am officially ditching the HTML5 shim for old browsers and here is why. I have dropped all stats from my website, so I won’t be able to tell when my “Internet Explorer 6” user base reaches zero. However, last time I checked it was just 0.05500982318% of you. This is less than 100 people […]

Programming

Printing Web Pages With The Paged Media Module

Posted on

One of the first questions I answered on a JavaScript forum when I first start programming was about printing web pages. The stock answer for a long time has been “you can’t do” whatever it was you wanted to do. Whether it was having some control over page breaks or customising headers and footers or […]