Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2011-09-28
5
Medium Priority
?
392 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
  • 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 2000 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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

This article discusses how to create an extensible mechanism for linked drop downs.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

916 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