_Neo
December 16, 2023, 11:29am
1
Tell us what’s happening:
Describe your issue in detail here.
Is there anything wrong with the CSS I’ve written? ? There isn’t any changes on the preview page, the background image is not showing.
Your code so far
/* file: index.Ext.html */
body {
background-image: url('https://cdn.freecodecamp.org/testable-projects-fcc/images/survery-form-background.jpeg');
background-repeat: no-repeat;
background-size: cover;
}
/* file: styles.Ext.css */
body {
background-image: url('https://cdn.freecodecamp.org/testable-projects-fcc/images/survery-form-background.jpeg');
background-repeat: no-repeat;
background-size: cover;
}
Challenge: Build a Survey Form Project - Build a Survey Form
Link to the challenge:
Learn to Code — For Free
system
December 16, 2023, 11:29am
2
You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.
Learning to describe problems is hard, but it is an important part of learning how to code.
Also, the more you say, the more we can help!
Hello @_Neo !
Is your css linked in the html file ?
Check in the head and see if you have <link rel="stylesheet" href="styles.css">
Sometimes we miss the end s in styles in the href.
I hope this can help you.
Happy coding!
2 Likes
_Neo
December 16, 2023, 11:39am
4
Yeah it’s linked, I’ve tried adding a background color and it worked but I’m trying to add the background image it’s not showing
2 Likes
I am going to try your code on my end and see what happens.
_Neo
December 16, 2023, 11:43am
6
Okay, thanks a lot. I’ll be waiting
3 Likes
Hi!
you have a typo in that link “survery”.
4 Likes
_Neo
December 16, 2023, 11:55am
9
Thanks man, I appreciate it
3 Likes
You are welcome, happens even to pros.
Checking the syntax is generally my first step when debugging!
3 Likes
_Neo
December 16, 2023, 11:57am
12
I’ll take note of that, thanks again
2 Likes
_Neo
December 16, 2023, 11:58am
13
Thank you for your time and effort, I appreciate it
3 Likes
system
Closed
June 16, 2024, 12:39am
15
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.