Home > Enterprise >  How to set font size and font family at the same p
How to set font size and font family at the same p

Time:12-07

Can you give me a sample code on how to make a paragraph/text with text size and font, I only know the code that uses different sizes without font, and the code with the font but without resizing, here is my code:
<p style="font-family:arcade classic", "font-size:40px">Use the arrow keys (on your keyboard) to move your frog, avoid cars, jump on logs (flowing on the water), and jump on turtles (note that every few seconds, they swim underwater, then go back on the water's surface again, if you are on top of that turtle and it sinks, you die)</p>

CodePudding user response:

use CSS like

p{font-family:"poppins", sans-serif; font-size:2em;}

/* do not forget to import Poppins from google font */

CodePudding user response:

You must use one citation in your css code

  • Related