Unique Marketing, Guaranteed Results.

CSS Font Styling Shorthand

April 23rd, 2009 by Mister Mc

Here’s a quick reference on how to style all of your font properties (and one text property: line-height) in one rule.

font: weight | variant | style | size/line height | font-family

font: bold small-caps italic 1em/1.25 Georgia, "Times New Roman", Times, serif;

For this to work, you must include font-size and the font-family (in that order).  They must also be the last two values listed.  If you leave out values, those values will render in their default state, ignoring inheritance and other group selectors.

Line height is optional.  Note that line height doesn’t have a unit.  Eric Meyer explains why.

Valid XHTML for good CSS

April 15th, 2009 by Mister Mc

If you’re like me, you’ve been learning how to design and build websites on your own, mainly by finding a site that you like and reverse engineering the code to see how the author made something work.  There are some really great books and web resources out there to teach you the fundamentals.  Sometimes it’s difficult to sort through the massive about of information and decide what is the most important to grasp.  I believe that the thing the separates great artists and technicians from everyone else is how well they understand the basics.  Here are a few of the foundational concepts regarding well-formed XHTML to make your CSS pages display more predictably across browsers and platforms.

Read the rest of this entry »

Accessibility: A Few Things Everyone Should Do

April 14th, 2009 by Mister Mc

Creating web pages that are accessible for people with disabilities is also a step in the right direction for making your site user-friendly for the rest of your audience.  Observing your work from a different perspective will give you insights on how you can improve.  For instance, what does your page look like when style sheets or images are disabled?  What will your site sound like when read by screen reading software?  How does the page look when loaded on a mobile device?  There are a few simple things everyone can do to avoid acessability problems.

Read the rest of this entry »

Copyright © 2005-2011 PMA Media Group. All Rights Reserved