0

Can't get the background to change color with style tag

Hey trying to set up a sit for myself but I can't get the style tag to change the background color can anyone tell me the proper way to put the code in the style Tag

31st Aug 2017, 5:04 PM
Tyler
Tyler - avatar
6 Answers
+ 3
Check this out: https://www.w3schools.com/cssref/pr_background-color.asp And if you mean inline style then style="background-color:black" should work. <div style="background-color:black">STUFF</div>
31st Aug 2017, 5:08 PM
Edwin J
Edwin J - avatar
+ 2
then wrap what's in that page I linked for you in style tag.
31st Aug 2017, 5:20 PM
Edwin J
Edwin J - avatar
+ 1
This is the proper syntax to set the background colour with the style attribute. Example (HTML): <body style="background-color:red;">
31st Aug 2017, 5:07 PM
Ghauth Christians
Ghauth Christians - avatar
+ 1
"Check this out: https://www.w3schools.com/cssref/pr_background-color.asp And if you mean inline style then style="background-color:black" should work." That would work but I mean the style tag that goes I the head
31st Aug 2017, 5:08 PM
Tyler
Tyler - avatar
+ 1
No problem.
31st Aug 2017, 5:21 PM
Edwin J
Edwin J - avatar
0
I got it fixed thank you all for your help
31st Aug 2017, 5:21 PM
Tyler
Tyler - avatar