dcsimg
LinkedIn
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Dec 14, 2018

Capitalize the First Letter of Every Word with CSS

Use the text-transform property with 'capitalize' value to capitalize the first letter of the words in an element.,

For example:

div { text-transform: capitalize; }
<div>this is a statement that requires first letter to be capitalized </div>

would become:

<div>This Is A Statement That Requires First Letter To Be Capitalized </div>
Srinath MS
 
Close Icon
Thanks for your registration, follow us on our social networks to keep up-to-date