Welcome to Office & SharePoint Pro Sign in | Join | Help
in Search

SUBSCRIBE to Windows IT Pro Magazine & SAVE 30%      Register today for your FREE "SharePointPro Connections UPDATE " eNewsletter

Web Part - change background color

Last post 11-18-2008, 3:46 PM by brettmcalpine. 3 replies.
Sort Posts: Previous Next
  •  06-09-2005, 7:17 AM 23974

    Web Part - change background color

    Hello,

    Does anybody know how could I programaticaly change the background color of a webpart. I checked some forums and obviously google but I don't get any hint.

    10x in advance. 

     

  •  06-09-2005, 8:21 AM 21454 in reply to 23974

    Web Part - change background color

    Hi,

    you can do this by using css files.
    here is a link t a site where you can create a css file easy:

    http://james.milne.com/SPSkin/

    yours sincerely,

    Peter Middelkoop

    And for something completely different: take a look at the swift webcam at: http://home.caiway.nl/~pmid

  •  06-12-2005, 5:42 AM 23973 in reply to 23974

    Web Part - change background color

    I checked your link but I can't see how can I use it. Maybe I was misunderstood. I want that: if anyone wants to "add new web-part" to his site he must have mine available with background color changed. Moreover, I want to let him chose the background color by adding a miscelanious property. And I just can't see where can I use CSS....
  •  11-18-2008, 3:46 PM 30278 in reply to 23973

    Re: Web Part - change background color

    I am sure you do not need this anymore, however someone else can use the answer.

     Place the following in a CEWP to change style on the page. for background picture

    <style>
    #MSOZoneCell_WebPartWPQ6 .ms-WPBody {
    background-image:url(url here);
    }
    </style>

    for a background color

    <style>
    #MSOZoneCell_WebPartWPQ6 .ms-WPBody {
    background-color:red;
    }
    </style>

View as RSS news feed in XML
SPONSORED LINKS FEATURED LINKS

Ten Things to Look for in a SharePoint Recovery ToolSee how third-party tools can offer the power to quickly and easily restore critical SharePoint data. F5 and HP Partner to Optimize SharePoint Server 2007If you are, or will be, assisting in deploying Office SharePoint Server 2007 solutions accessed over a Wide Area Network (WAN), you'll find this podcast of value Storage Optimization for SharePointThis Technical Advisor will put you on the path toward optimizing storage for SharePoint. How to Get a Highly Available Virtualized SharePointHow the F5 BIG-IP Local Traffic Manager (LTM), Microsoft SharePoint Server, and Windows Server Hyper-V can work together to improve application performance, deliver a better user experience, and use your resources more efficiently in a virtualized environ