freeCodeCamp/guide/english/certifications/responsive-web-design/basic-css/change-the-font-size-of-an-.../index.md

24 lines
497 B
Markdown
Raw Normal View History

2018-10-12 19:37:13 +00:00
---
title: Change the Font Size of an Element
---
## Change the Font Size of an Element
<!-- The article goes here, in GitHub-flavored Markdown. Feel free to add YouTube videos, images, and CodePen/JSBin embeds -->
We need to create an entry for ```p``` elements and set the ```font-size``` to 16 pixels (```16px```), Inside the same ```<style>``` tag that contains your ```red-text``` class.
2018-10-12 19:37:13 +00:00
### Example
2018-10-12 19:37:13 +00:00
```css
h1 {
font-size: 30px;
}
```
### Solution
```css
p {
font-size: 16px;
}
```