css font italic shorthand not working? -


i trying make text italic font shorthand.

so far have this;

font: 36px italic normal georgia; 

but not working. font definetely can italic if set font-style: italic; works.

you having wrong short hand syntax there, should

p {     font: italic normal 12px georgia; } 

demo

reference :

enter image description here

image credits

as see in above image, there mandatory syntax font property declared , need maintain order make shorthand work, since using 36px @ wrong place, breaking out entire property.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -