I’m trying to change the background color to my web part title bars, but for some reason I can’t get my CSS modification to work.
First, I’ve made a copy of the default seattle.master and corev15.css files. I uploaded my new master file into the Master Page Gallery and pointed the site to it via the Site Master Page settings. I know that part is working, because as test, I changed the favicon path and I do see that change.
Then, under the Alternate CSS URL, I’m pointing to my custom CSS file that I’ve uploaded to the Style Library. In addition to all of the CSS code included in the corev15.css file, I’ve added this code:
.ms-WPHeader TD{
background-color:#0072c6
}
That doesn’t seem to do anything. After lots of Internet searching, I’ve also tried the alternative methods of pointing to the CSS file directly from the .master file AND putting that code directly on the page within an HTML editor web part. That doesn’t work either..
Any thoughts? This is driving me crazy…
Thanks for sharing the whole block, Drew! Useful information for me too!!
I have also found it is heavily used by offshore developers who have no idea what they are doing and then deliver a customized site to you. You then realize you will have to scan everything to figure out what problems were covered up by it 🙂
Awesome! Glad I could help. Drew has the better answer I agree. Been doing SP for a long time, but haven’t been doing CSS within it for very long.
Have a great day!
Dave
Yep, that’s the tag I was looking for. And now that I changed the color to blue, I can see that I have some work to do on the font formatting as well, so thanks for including the entire block.
David, you were right on the money! I was using an older tag. Thanks so much, I wish I would have just asked for help in the first place – it would have saved me some frustration. (I’m a network admin tagged with updating the company’s intranet site – CSS is something I’m only casually familiar with).
I did end up using the full tag indicated by Drew below, but you definitely got me going in the right direction.
Thanks, again!