¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita+ 3
How to modify font family and style simultaneously? [SOLVED]
Let's suppose I want to change the font style and family for a particular paragraph simultaneously. So, is there any method?
7 Respuestas
+ 4
"cursive" is a generic name for a font type: There are different cursive fonts, and when you only write "cursive" it will fall back to whatever the browser chooses as cursive font.
They list a few examples of cursive fonts here:
https://developer.mozilla.org/en-US/docs/Web/CSS/font-family
+ 2
Harsh
Times New Roman is not a cursive font, so it will not work.
Perhaps you can use Google fonts and use a font you like.
+ 1
add or remove a css class.
+ 1
Bob_Li So other than Arial, there isn't any font which is present in cursive?
+ 1
Brush Script MT is a choice, but if you can access google fonts, there are other better options.
https://www.w3schools.com/cssref/css_websafe_fonts.php
0
or maybe you mean a css shorthand?
<p style="font: 30px Arial, sans-serif;">Hello</p>
<p style="font:italic small-caps bold 25px/30px Georgia, serif">Hello</p>
https://www.w3schools.com/css/css_font_shorthand.asp