Font family css

Tell us what’s happening:
Describe your issue in detail here.
im struggling with my code. please help me

  **Your code so far**

<style>
.red-text {
  color: red;
} 
<p1 { font-size: 70px;
    font-family: monospace;
} </p1>
<p2 {font-family: monospace; 
}</p2>
</style>
<h2 class="red-text">CatPhotoApp</h2>

  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36

Challenge: Set the Font Family of an Element

Link to the challenge:

Hey @denisem0050 thanks for posting. A few things that can help:

  1. You don’t need to put brackets or tags in CSS code inside the tags. I see where you have …etc. You do not need to do that. This should do:
p {
    font-size: 16px;
}
  1. From there, how would you then add the font-family property and set it to monospace?

It would probably be easier if you went ahead and reset the code in the problem by clicking the ‘reset all code’ button, then looking at the prompt one more time. You can do it!

Hi @denisem0050,

Remove all the CSS properties and curly braces from the HTML <p> tag. Inside your <styles> tag put a <p> tag and set the font-family to Monospace along with font-size in <p> tag.

Example:

p {
 font-size: 16px;
}

I hope this helps.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.