Change the font size of an element 2

Change the font size of an element 2
0.0 0

#1

Tell us what’s happening:

.red-text { color: red; font-size: 16px; }

CatPhotoApp

Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.

kitty ipsum dolor sit amet:Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.

Your code so far

<style>
  h2 {
    color: red;
  }
</style>

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

<p>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>

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Linux; Android 5.0; RCT6303W87DK Build/LRX21M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.84 Safari/537.36.

Link to the challenge:


not able toh set font size


#2

The challenge you clicked the “Ask for help on the forum” button does not ask you to change the font-size.

Based on the code shown under Your code so far, you have not successfully completed the following instruction:

Inside your style element, change the h2 selector to .red-text and update the color’s value from blue to red.

You have defined a h2 selector so h2 elements’ text color will be red, but the challenge wants you to use “.red-text” which would be a class definition to do the same thing.

What is the challenge name you want help with?


#3

done with that part before but theres still error


#4

@Abhishek98 - Can you reply back with the challenge name you are working on and copy/paste the your current code into the same post, so I can see what you have?


#5
.red-text { color: red; } h2 { font-family: Lobster, Monospace; }

p {
font-size: 16px;
font-family: Monospace;
}

CatPhotoApp

A cute orange cat lying on its back.

Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.

Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.

not abble to change the image size to 100px