# Solution for "Basic CSS: Understand Absolute versus Relative Units"

**URL:** <https://forum.freecodecamp.org/t/solution-for-basic-css-understand-absolute-versus-relative-units/428142>\
**Category:** freeCodeCamp Contributors\
**Tags:** contributing\
**Created:** [October 31, 2020, 8:44pm UTC](https://forum.freecodecamp.org/t/solution-for-basic-css-understand-absolute-versus-relative-units/428142 "2020-10-31T20:44:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![f3nd1mus](https://avatars.discourse-cdn.com/v4/letter/f/3da27b/32.png) [@f3nd1mus](https://forum.freecodecamp.org/u/f3nd1mus)\
**Post date:** [October 31, 2020, 8:44pm UTC](https://forum.freecodecamp.org/t/solution-for-basic-css-understand-absolute-versus-relative-units/428142/1 "2020-10-31T20:44:17Z")

</div>

**What is your hint or solution suggestion?**

> **Solution**
>
> ```auto
> .red-box {
> 
> background-color: red;
> 
> margin: 20px 40px 20px 40px;
> 
> padding: 1.5em;
> }
> 
> ```

**Challenge:** Understand Absolute versus Relative Units

**Link to the challenge:**

> **[freeCodeCamp.org](https://www.freecodecamp.org/learn/responsive-web-design/basic-css/understand-absolute-versus-relative-units)**
>
> Learn to Code — For Free

---

<div class="post-metadata">

**Author:** ![Sky020](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/sky020/32/128093_2.png) [@Sky020](https://forum.freecodecamp.org/u/Sky020)\
**Post date:** [October 31, 2020, 8:49pm UTC](https://forum.freecodecamp.org/t/solution-for-basic-css-understand-absolute-versus-relative-units/428142/2 "2020-10-31T20:49:15Z")

</div>

Welcome, f3nd1mus.

Thank you, for your contribution. For future contributions, please wrap your solution within :

````nohighlight
[details]
```
code goes here...
```
[/details]

````

Also, provide **all** of the necessary code to pass the challenge.

Also, when you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor ( `</>` ) to add backticks around text.

 ![Pre-formatted-text](https://global.discourse-cdn.com/freecodecamp/original/3X/1/b/1b18854f1059217f29370444396145cc3a0cd8ae.gif)

See [this post](http://www.freecodecamp.com/forum/t/forum-code-formatting/25574) to find the backtick on your keyboard.  
**Note:** Backticks (`) are not single quotes (’).

---

<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:** [June 1, 2021, 6:32pm UTC](https://forum.freecodecamp.org/t/solution-for-basic-css-understand-absolute-versus-relative-units/428142/3 "2021-06-01T18:32:14Z")

</div>

Closed on June 1, 2021, 6:32pm UTC


