dcsimg
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

WEBINAR:

On-Demand

Building the Right Environment to Support AI, Machine Learning and Deep Learning


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
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Thanks for your registration, follow us on our social networks to keep up-to-date