Capitalize first letter with CSS

Maybe stupid, maybe handy, maybe awesome. I don’t know if you already this one, I did but I saw a few people struggling with it.

How do you capitalize the first letter of a paragraph or li or whatever…

Very simple:

li:first-letter
{
    text-transform: capitalize;
}

there you go, think of something like tip of the daySmile

Advertisements
Posted in css, css3. Tags: , . Leave a Comment »

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: