'Intro component with sign-up' with HTML5, SCSS ad JS
Design comparison
Solution retrospective
Unsure why my background image isn't showing on the screenshot? It's working in live and local...
General comments on SCSS and JS appreciated :)
Community feedback
- @GerbenDolPosted over 4 years ago
Hey! I'm seeing your background just fine in the screenshot! 😁
I was wondering why you set the background image using an ::after element on the body?
0@HARSHITKUPosted over 4 years agoyeah, your screenshot has the background image and it's visible
0@NatClampPosted over 4 years ago@GerbenDol I originally had it as body::before which worked fine locally and deployed but the screenshot on here didn't show the background image. So I swapped it out for ::after and that seemed to fix it?
0@NatClampPosted over 4 years ago@GerbenDol also, I originally had the background image and colour on the body but I couldn't get it working... It might have been a different bit of styling making it not work but I searched around for a solution online and somebody had done it this way, and it seemed to work?
0@GerbenDolPosted over 4 years ago@NatClamp Alright. It seems a bit overcomplicated to me. You should be able to simple set the background image directly to your body.
You can check out my solution here where I did it like that.
Maybe that'll help! 😁
0@NatClampPosted over 4 years ago@GerbenDol hm, interesting! Wonder why it wasn't working then... I'll give it another go :) thanks!
0@NatClampPosted over 4 years ago@GerbenDol Hah, yeah it works now! Must have been another bit of css I had at the time that stopped it working. Thanks for the tip!
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord