# Setting a background

**URL:** <https://forum.freecodecamp.org/t/setting-a-background/694302>\
**Category:** Curriculum Help\
**Created:** [June 7, 2024, 11:42am UTC](https://forum.freecodecamp.org/t/setting-a-background/694302 "2024-06-07T11:42:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dilfo](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@dilfo](https://forum.freecodecamp.org/u/dilfo)\
**Post date:** [June 7, 2024, 11:42am UTC](https://forum.freecodecamp.org/t/setting-a-background/694302/1 "2024-06-07T11:42:39Z")

</div>

I am trying to set the background image of a div but nothing is working, is there a particular I have to do it?  
Here’s the link for the post  
SwordsKingdom

---

<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 7, 2024, 11:43am UTC](https://forum.freecodecamp.org/t/setting-a-background/694302/2 "2024-06-07T11:43:39Z")

</div>

Hey there,

Please update the message to include your code.

When you enter a code, 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](https://forum.freecodecamp.org/t/forum-code-formatting/25574) to find the backtick on your keyboard.  
**Note:** Backticks (`) are not single quotes (').

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [December 6, 2024, 11:44pm UTC](https://forum.freecodecamp.org/t/setting-a-background/694302/3 "2024-12-06T23:44:02Z")

</div>

Closed on December 6, 2024, 11:44pm UTC

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.
