# Use a CSS Class to Style an Element. Help!

**URL:** <https://forum.freecodecamp.org/t/use-a-css-class-to-style-an-element-help/167668>\
**Category:** General\
**Created:** [January 9, 2018, 6:01am UTC](https://forum.freecodecamp.org/t/use-a-css-class-to-style-an-element-help/167668 "2018-01-09T06:01:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hansoolo](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/hansoolo/32/160838_2.png) [@hansoolo](https://forum.freecodecamp.org/u/hansoolo)\
**Post date:** [January 9, 2018, 6:01am UTC](https://forum.freecodecamp.org/t/use-a-css-class-to-style-an-element-help/167668/1 "2018-01-09T06:01:33Z")

</div>

**Tell us what’s happening:**

I looked into the code a thousand times now and I can’t seem to find the mistake… Can anyone else see something?

**Your code so far**

```auto
<style>
.red-text {
    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 7.0; SM-G930F Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.111 Mobile Safari/537.36`.

**Link to the challenge:**  
[https://www.freecodecamp.org/challenges/use-a-css-class-to-style-an-element](https://www.freecodecamp.org/challenges/use-a-css-class-to-style-an-element)

---

<div class="post-metadata">

**Author:** ![hansoolo](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/hansoolo/32/160838_2.png) [@hansoolo](https://forum.freecodecamp.org/u/hansoolo)\
**Post date:** [January 9, 2018, 7:39am UTC](https://forum.freecodecamp.org/t/use-a-css-class-to-style-an-element-help/167668/3 "2018-01-09T07:39:23Z")

</div>

Hey randell, thanks for your reply. I tried all of these. Deleted the browser data. Refreshed. Still showing the first point with an X ☹

---

<div class="post-metadata">

**Author:** ![hansoolo](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/hansoolo/32/160838_2.png) [@hansoolo](https://forum.freecodecamp.org/u/hansoolo)\
**Post date:** [January 9, 2018, 7:50am UTC](https://forum.freecodecamp.org/t/use-a-css-class-to-style-an-element-help/167668/4 "2018-01-09T07:50:13Z")

</div>

![Screenshot_20180109-084841](https://global.discourse-cdn.com/freecodecamp/original/3X/2/c/2c65044a68c7c1e5e4cd683add0f5ae264f96511.png)

---

<div class="post-metadata">

**Author:** ![hansoolo](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/hansoolo/32/160838_2.png) [@hansoolo](https://forum.freecodecamp.org/u/hansoolo)\
**Post date:** [January 9, 2018, 8:37am UTC](https://forum.freecodecamp.org/t/use-a-css-class-to-style-an-element-help/167668/5 "2018-01-09T08:37:32Z")

</div>

OK, I switched to Chrome on Desktop and re-edited the code and it worked. Challenge done. 🙂

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 17, 2021, 8:30pm UTC](https://forum.freecodecamp.org/t/use-a-css-class-to-style-an-element-help/167668/6 "2021-01-17T20:30:53Z")

</div>

Closed on January 17, 2021, 8:30pm UTC


