html - To make first letter in a string as capital and make the font as italic -


how make first letter capital in string , display string italic..

input: hyptis suavalovens trying output this... *hyptis suavalovens* 

do css:

p:first-letter {     text-transform: capitalize; }  p {     font-style: italic; } 
<p>input:hyptis suavalovens</p> <p>i trying output this...</p> <p>*hyptis suavalovens*</p> 

http://jsfiddle.net/ez3lv/2/


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -