Solved

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

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
This article discusses how to create an extensible mechanism for linked drop downs.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

706 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now