graybox

graybox

IE Background Images

Introduction A very handy CSS property is the “background-size” property. For background images, and images we need to cover an entire div we can simply apply “background-size: cover;” or “background-size: 100% 100%;”. Doing so stretches the background image to the…

Vertical Accordion Menu

Vertical menu’s have recently become the newest rave in the Web industry. They are responsive, save space, and look great on any device. Let’s get things started by putting in place our HTML and add the underlying structure to the…

Hover Animations

With the addition of CSS3 transitions and keyframe animations it can be easy to overdo animations on your website. However, adding certain effects to main content areas can greatly enhance the experience your visitors receive. A popular trend on the…

Email Inputs

When we apply a type of “email” to form inputs, we can instruct the browser to only allow strings that conform to a valid email address structure. This makes us that much closer to built-in form validation and we don’t…

Using The < nav > Element in HTML5

With the addition of the nav element in HTML5 there is much confusion as to when to use it. The HTML5 specification definition is the following: “The nav element represents a section of a page that links to other pages…

Quick Tip: HTML 5 Cheat Sheet

There is a very handy HTML 5 cheat sheet available for download. It’s a printable HTML 5 Cheat Sheet that lists all currently supported tags, their descriptions, their attributes and their support in HTML 4. Definitely worth a download and…

Quick Tip: CSS3 Cheat Sheet

If you don’t have it already, do yourself a favor and print this CSS3 cheat sheet. It has a complete listing of all the properties, selectors types and allowed values in the current CSS3 specification from the W3C. Each property…

Using the :nth child selector in CSS3

There is a CSS selector called nth-child. If you put simply a number in the parentheses, it will match only that number element. For example, here is how to select only the 3rd element: The :nth-child(n) selector matches every element…