Something that used to be considered bad practice in the days when we were all coding in XHTML days, and also would not validate is nesting block level elements inside of anchor tags. HTML 5 now allows anything to be nested inside anchor tags so the following would indeed validate and still allows us to [...]
I am a fairly recent convert to using rem font sizing having used ems extensivley for past projects. Most of us know due to issues with text resizing in IE that we shouldn’t be using px values for our font sizing. Here ems jumped to the rescue and have, for a number of years been [...]
Below is a very simple CSS reset that I use on all of my projects.
With these complex frameworks you see such as Twitter Bootsrap, HTML5 Boilerplate I find I am always having to take time to override their styles and hack the stylesheet provided. Setting box sizing to border box also forces padding [...]
First, let’s start with why we would want a media query to be executed in jQuery. Media queries are mostly used in responsive design to shift html elements. An example would be to break down all columns in a single column for the smallest screen sizes. They can also be used to test many other [...]
In this post I will explain why it is dumb and you should never use all capitals for text such as heading in your HTML. Firstly it’s kinda mixing style with substance, any kind of visual style should, in almost all cases be done in CSS. Secondly what happens if you write. all of your [...]