Skip to content

I am developing a theme for wordpress, also I am a beginner. As I was coding, the body tag in my css wouldn’t work. What can be the possible reason? [closed]

Coding it in VS code. If you need for info, please let me know.


enter image description here

Check via the browser debugging console if any other style is overwriting your css. In chrome, right click with your mouse and select “inspect element” from the popup menu. Find the body tag in the console that should have appeared and click on it. To the right you should see all the css of the element you selected. If you see your own code “striked” with a line it means it’s being overwritten by the code above it that looks unstriked.