Font sizing using rem on Drupal 7 themes

Font sizing using rem on Drupal 7 themes

Posted by Art Williams on March 07, 2012

When it comes to font sizing on a website, the debate between accessibility and control rages on. The control camp prefers px font-sizes to maintain the look of the site, and the accessibility crowd prefers em to allow font scaling in the browser.

Most Drupal 7 base themes are built using ems but since the em unit is based on the parent elements font-size, dealing with the compounding of ems in nested elements can be a real pain for front-end developers. When building a list it’s likely that you’ll have an <li> nested in another <li>. If you’ve declared the <li> font-size of 1.2em then the inner <li> will be 1.2emX1.2em, and so on an so on. The math can get complicated and frustrating.

READ MORE

The Gibbs Guide to Marketing

Posted by Amy Peveto on March 05, 2012

I’m a big fan of the CBS show “NCIS,” and an even bigger fan of team leader Special Agent Leroy Jethro Gibbs. He’s prickly and prone to back-of-the-head slapping, but he’s also a potential source of great inspiration for marketers.

READ MORE

5 Steps to a Killer Landing Page [Video]

Posted by Amy Peveto on February 27, 2012

Your website’s landing pages can be your first (and only) chance of making a good impression. This video covers the five elements your landing page needs to catch the visitor’s attention and convince him or her to convert.

READ MORE

Rinse and repeat: Do you have a place where you keep common code?

Posted by JD Collier on February 24, 2012

When you make websites for a living, there are many times when you repeat something from a previous project. You need to add code to increase PHP memory limit in the htaccess file, set up the initial framework for your CSS file, or add your Made-By logo code to the footer of a website. The list goes on and on. Sometimes you find yourself whispering the shampoo bottle mantra, "rinse and repeat."

READ MORE