Solved

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

Posted on 2011-09-28
5
371 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Find out what you should include to make the best professional email signature for your organization.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remaiā€¦
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

734 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