Dealing with the Cascade and Specificity

May 23, 2016

One of the things that I enjoy covering in my workshops is how to deal with managing the CSS cascade. We all have different techniques that we use and each come with their pros and cons. The cascade is the rule-based system that rendering engines use to decide what properties should apply to an element when multiple rules are declared for the same element. For example, let’s say you have...

Read it all »

All or Nothing

May 18, 2016

There’s a recent CSS property that I had originally been quite excited about: all. The all property is a shortcut for resetting all of the properties on a given element. Like a big ol’ CSS reset in one line. Reset them to what? Either a complete blank slate using the initial value or by having everything inherit from the parent using the inherit value. When would you want to use the all...

Read it all »

More Meaningful CSS

May 17, 2016

Tim Baxter wrote an article for A List Apart discussing the possibly dogmatic, and maybe unnecessary, use of classes for styling HTML elements. Why do ‘.button’ when you can do ‘button’? Why do ‘.form’ when you can do ‘form’? I think it’s important to understand the context of which class-based systems like OOCSS, SMACSS, and BEM have made their way into being. With ...

Read it all »

What’s Next?

April 27, 2016

The writing was on the wall. For over a year now, I’ve waffled, hummed, and hawed on what I wanted to do. Last May, I left Shopify. For a brief two months, I filled my time up with conferences and relaxation before taking a position at Xero. Going into Xero, I was apprehensive. It’s probably not the feeling you want to have going into a new job but it was a good offer and I had hope that my...

Read it all »

View the Entire Archive