Responsive Web Design: Added hint to Change the Font Size of an Element (#19603)
Added hint to Change the Font Size of an Element (https://guide.freecodecamp.org/certifications/responsive-web-design/basic-css/change-the-font-size-of-an-element)
This commit is contained in:
@ -3,8 +3,21 @@ title: Change the Font Size of an Element
|
|||||||
---
|
---
|
||||||
## Change the Font Size of an Element
|
## Change the Font Size of an Element
|
||||||
|
|
||||||
This is a stub. <a href='https://github.com/freecodecamp/guides/tree/master/src/pages/certifications/responsive-web-design/basic-css/change-the-font-size-of-an-element/index.md' target='_blank' rel='nofollow'>Help our community expand it</a>.
|
|
||||||
|
|
||||||
<a href='https://github.com/freecodecamp/guides/blob/master/README.md' target='_blank' rel='nofollow'>This quick style guide will help ensure your pull request gets accepted</a>.
|
|
||||||
|
|
||||||
<!-- The article goes here, in GitHub-flavored Markdown. Feel free to add YouTube videos, images, and CodePen/JSBin embeds -->
|
<!-- 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.
|
||||||
|
|
||||||
|
### Example
|
||||||
|
|
||||||
|
```css
|
||||||
|
h1 {
|
||||||
|
font-size: 30px;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### Solution
|
||||||
|
|
||||||
|
```css
|
||||||
|
p {
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
Reference in New Issue
Block a user