I try to apply some styles to the list. I added CEWP into the page and edited the source. It is CEWP's source:
<style type="text/css">
body{background-color:white;}
</style>
It doesn't work. Why doesn't it work? I'm using SP 2013.
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.
Sign up to join this communityChances are there is another style that is overwriting your style that is either more specific, or loaded after yours.
Try using Firefox with the Firebug add-on or the Chrome Developer tools in Google Chrome to select the element and see what styles are being applied and from where.
Or, if you're just trying to change the background color for a list, it wouldn't be the body tag that you'd be styling. It's much more specific than that. Like I said above, your best bet is to open the page and use the developer tools to find out the class you should be targeting.
Have you wrapped your css in a style tag like:
<style type="text/css">
body
{
...
}
</style>
?