Skip to content

Change the Font Size of an Element. 100% zoom in the browser, still won't work. #7658

Closed
dude920228 opened this Issue · 3 comments

4 participants

@dude920228

I have this code, which should pass the tests:

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

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

<p class="red-text">Purr jump eat the grass</p>
<p>Purr jump eat the grass</p>

It still won't pass. I'm using firefox.

@drk7891

Have you checked out FreeCodeCamp's help channel on Gitter?

This is not a bug but wrong syntax. The issue is where you're setting the font-size. You're setting it to 16 px where it should be 16px.

@ltegman
Free Code Camp member

@drk7891 Is correct. Thanks and happy coding!

@ltegman ltegman closed this
@kikenz

Using Chrome ver 49 (up-to-date) and I cannot pass, I fail at the last check mark: Give elements with the p tag a font-size of 16px. Browser and Text zoom should be at 100%.

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.