Ask coding questions

← Back to all posts
More Practice! <3
naji0627

I want to change the background color of my webpage but when I try to attach the CSS to the body tag (body {}) it won't work, but I know the CSS is working because if I use a class div in CSS {.body} it works. I don't know what to do, and I need to make my friend a webpage for his birthday, please help.

Voters
naji0627
Comments
hotnewtop
NFadhlurrahman

Your CSS doesn't work because Bootstrap change the background color to white. I think swapping line 10 and line 12 will help.

naji0627

It worked, thank you so much! @NFadhlurrahman