# Change the font size

**URL:** <https://forum.freecodecamp.org/t/change-the-font-size/67550>\
**Category:** General\
**Created:** [December 20, 2016, 6:05pm UTC](https://forum.freecodecamp.org/t/change-the-font-size/67550 "2016-12-20T18:05:24Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![bryceare](https://avatars.discourse-cdn.com/v4/letter/b/b3f665/32.png) [@bryceare](https://forum.freecodecamp.org/u/bryceare)\
**Post date:** [December 20, 2016, 6:05pm UTC](https://forum.freecodecamp.org/t/change-the-font-size/67550/1 "2016-12-20T18:05:24Z")

</div>

How do I change the font size of the red text ? Yes, it’s simple to place the likes of this ,  
h1 {font-size: 30px;}

but where ?

![](https://global.discourse-cdn.com/freecodecamp/original/3X/5/d/5d8d2d03f7e42fec7e1fa501ace6c0d6bbba3513.JPG)

---

<div class="post-metadata">

**Author:** ![Flopet17](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/flopet17/32/34902_2.png) [@Flopet17](https://forum.freecodecamp.org/u/Flopet17)\
**Post date:** [December 20, 2016, 6:09pm UTC](https://forum.freecodecamp.org/t/change-the-font-size/67550/2 "2016-12-20T18:09:54Z")

</div>

In the `.red-text` class, add another line, and add the `font-size` property.

---

<div class="post-metadata">

**Author:** ![Soupedenuit](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/soupedenuit/32/32478_2.png) [@Soupedenuit](https://forum.freecodecamp.org/u/Soupedenuit)\
**Post date:** [December 20, 2016, 6:21pm UTC](https://forum.freecodecamp.org/t/change-the-font-size/67550/3 "2016-12-20T18:21:25Z")

</div>

Yes, what Flopet17 said.  
You can include many “property: values” for one selector.  
In this case, your selector is “.red-text”, your first property is “color” and your first value is “red”.  
Your second property will be “font” and your second value will be “30xp”.  
Put your closing curly bracket on it’s own line - that’s the usual convention.

```
selector {
  property: value;
  property: value;
  property: value;
}
```

---

<div class="post-metadata">

**Author:** ![bryceare](https://avatars.discourse-cdn.com/v4/letter/b/b3f665/32.png) [@bryceare](https://forum.freecodecamp.org/u/bryceare)\
**Post date:** [December 20, 2016, 7:50pm UTC](https://forum.freecodecamp.org/t/change-the-font-size/67550/4 "2016-12-20T19:50:39Z")

</div>

Thank you for your help,  
but it still isn’t working.

What is wrong with the following ? ignore the font size. ![](https://global.discourse-cdn.com/freecodecamp/original/3X/c/a/cab6be9bb3a1fd7d5efc759198e72f4847468cda.JPG)

---

<div class="post-metadata">

**Author:** ![anon97231988](https://avatars.discourse-cdn.com/v4/letter/a/3bc359/32.png) [@anon97231988](https://forum.freecodecamp.org/u/anon97231988)\
**Post date:** [December 20, 2016, 7:54pm UTC](https://forum.freecodecamp.org/t/change-the-font-size/67550/5 "2016-12-20T19:54:20Z")

</div>

edit: damn, i need to read slower ;/

---

<div class="post-metadata">

**Author:** ![danielctodd10281990](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/danielctodd10281990/32/30402_2.png) [@danielctodd10281990](https://forum.freecodecamp.org/u/danielctodd10281990)\
**Post date:** [December 20, 2016, 7:57pm UTC](https://forum.freecodecamp.org/t/change-the-font-size/67550/6 "2016-12-20T19:57:15Z")

</div>

Take off the period in front of font-size. You only do a period when making a new class. so font-size:16px;  
Also need to re-add the {}.  
so:  
.red-text {  
color: red;  
font-size: 16px;  
}

---

<div class="post-metadata">

**Author:** ![bryceare](https://avatars.discourse-cdn.com/v4/letter/b/b3f665/32.png) [@bryceare](https://forum.freecodecamp.org/u/bryceare)\
**Post date:** [December 20, 2016, 8:33pm UTC](https://forum.freecodecamp.org/t/change-the-font-size/67550/7 "2016-12-20T20:33:39Z")

</div>

> [@danielctodd10281990](#):
>
> > [@danielctodd10281990](#):
> >
> > .red-text {  
> > color: red; ![](https://global.discourse-cdn.com/freecodecamp/original/3X/6/f/6fb8083e389756ed2c770a6eb4fd22e5639ad890.JPG)  
> > font-size: 16px;  
> > }

Thank you. I still must be missing something. Here is an updated image…

---

<div class="post-metadata">

**Author:** ![danielctodd10281990](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/danielctodd10281990/32/30402_2.png) [@danielctodd10281990](https://forum.freecodecamp.org/u/danielctodd10281990)\
**Post date:** [December 21, 2016, 7:59am UTC](https://forum.freecodecamp.org/t/change-the-font-size/67550/8 "2016-12-21T07:59:03Z")

</div>

I went back to that lesson to see for myself and the reason that isn’t working for you is because the requirement was for you to make a class to modify all paragraph elements and not to add it to your red-text class.  
It should be:

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

```

---

<div class="post-metadata">

**Author:** ![bryceare](https://avatars.discourse-cdn.com/v4/letter/b/b3f665/32.png) [@bryceare](https://forum.freecodecamp.org/u/bryceare)\
**Post date:** [December 21, 2016, 5:10pm UTC](https://forum.freecodecamp.org/t/change-the-font-size/67550/9 "2016-12-21T17:10:06Z")

</div>

Thank you 🙂 Very much appreciated !!

---

<div class="post-metadata">

**Author:** ![jwilkins.oboe](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jwilkins.oboe/32/179497_2.png) [@jwilkins.oboe](https://forum.freecodecamp.org/u/jwilkins.oboe)\
**Post date:** [January 16, 2021, 6:11am UTC](https://forum.freecodecamp.org/t/change-the-font-size/67550/10 "2021-01-16T06:11:05Z")

</div>

Closed on January 16, 2021, 6:11am UTC


