Stuck with the last rule

Stuck with the last rule
0

#1

Tell us what’s happening:

Your code so far

<style>
  .red-text {
    color: red; <p> font-size = 16px;</style></p>

<h2 class="red-text">CatPhotoApp</h2>

<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p>Kitty ipsum text: purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>

Your browser information:

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

Link to the challenge:


#2

What exactly are you asking?

If you want your code to be correct, here it is:

<style>
  .red-text {
    color: red; 
    font-size: 16px;
}
</style>


<h2 class="red-text">CatPhotoApp</h2>

<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p>Kitty ipsum text: purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>

#3

I have your code as exactly written. I’m still not passing the last test where it is asking:

Between the style tags, give the p elements font-size of 16px. Browser and Text zoom should be at 100%.


#4

Sorry for not responding but that was not the answer to the challenge as I do not know the challenge. I just attempted to fix your code that you showed above. If you still need help, I will help.


#5

In your original code (seen at the top of this thread, you were not properly defining the p element style. You don’t use the tags like <p> or </p> in the style section like you were trying to do. If you notice in the challenge example, it shows the following for defining the font-size property of h1 elements. You need to use this syntax within the style section.

h1 {
  font-size: 30px;
}

Make sure that for every element or class you define within the style section, they each have their own set of { and } which act as the opening and closing of a particular definition. When you solve this challenge, your style section will look something like:

<style>
  .red-text {
    color: red;
  }
  someThingGoesHere {
    someCodeGoesHere
  }
</style>