Friends

Tuesday, September 27, 2011

All Caps with CSS

While text in general is hard to read when written in all caps – and considered the electronic version of yelling – using CAPS for emphasize is a handy tool. Headers are a place where capitalization is frequently used. And to assure that your header is displayed uniformly throughout the site without having to worry about actually writing in all caps, just use CSS:
h1 {
text-transform: uppercase;
}
With this, everything that has the h1 tag applied, will appear in all caps.
Another interesting text-transformation property is "capitalize"
h1 {text-transform: capitalize;
}
With this, all your words will begin with a capital letter!

0 comments:

Post a Comment

#
### ###