locked
Adding a background to my Calendar Web part RRS feed

  • Question

  • Ok so I customized my sp site, background and all. Problem is that now when I add a web part (like my calendar for example) there is no solid color for the background webpart at all it's transparent. How do I add a color background to my calendar webpart (make it solid white) so the background to the actual page bkg isnt a distraction?
    Thursday, July 26, 2012 12:11 AM

Answers

  • Hello,

    I guess you changed the background of. S4-ca.
    To change the background color of the Web, you-can change. S4-wpTopTable css

    example:

    .s4-wpTopTable
    {
    background-color:white!important;
    }
    
    .s4-ca
    {
    background-color:green!important;
    }



    Withou modify .s4-wpTopTable : ( IfI understand it's Your problem )

    NicoBzh

    Thursday, July 26, 2012 8:19 AM

All replies

  • Hello,

    I guess you changed the background of. S4-ca.
    To change the background color of the Web, you-can change. S4-wpTopTable css

    example:

    .s4-wpTopTable
    {
    background-color:white!important;
    }
    
    .s4-ca
    {
    background-color:green!important;
    }



    Withou modify .s4-wpTopTable : ( IfI understand it's Your problem )

    NicoBzh

    Thursday, July 26, 2012 8:19 AM
  • Hi,

    Some thoughts on changing the background color and not just the text color…

    Just change the FONT tag to a SPAN tag and use a style. Example:

    ="<span style='background-color:"&Color&"'>"&Title&"</span>"

     

    This works, but the background is for just the width of the text, not the entire table cell. The closest I’ve come is to hard code the width:

     

    ="<span style='width:120px;background-color:"&Color&"'>"&Title&"</span>"

    This looks good in the Month view, but not so good in Week or Day views.

                                  image

    You will probably want to use colors like lightblue, lightgreen, tomoto  etc.

    Thanks,

    Machindra Salunkhe


    Thursday, July 26, 2012 8:27 AM