Solved

Sharepoint 2010 how to apply a background color to a web part

Posted on 2011-09-28
5
379 Views
Last Modified: 2012-05-12
Need help to apply a background color to a web part body (Not the title)

Any ideas how to achieve this?
0
Comment
Question by:pancho15
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 16

Expert Comment

by:SSupreme
ID: 36715958
add this to your CSS file:
body {background: green;}
0
 

Author Comment

by:pancho15
ID: 36715967
Needs to be for the web part body not the page body ?
0
 
LVL 6

Accepted Solution

by:
ramuar1981 earned 500 total points
ID: 36716360
in css file find below class name and add background color

ms-wpContentDivSpace
{
background-color:red;
}
0
 
LVL 16

Expert Comment

by:SSupreme
ID: 36717569
What is the name of web part body?
0
 

Author Closing Comment

by:pancho15
ID: 36945661
thanks
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
Suggested Courses

632 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question