How to align center and change background color

Forums Comment box for SharePoint How to align center and change background color

Viewing 0 reply threads
  • Author
    Posts
    • #6847
      Alexander Bautz
      Keymaster

      I got this question from Javier Gonzalez Pardo:

      Hi Alexander,

      Thank you very much for the post, has been very useful. I have a couple of questions, How do I align the webpart center (it is currently aligned to the left) ?. How do I change the background color of the webpart CommentBox, from blue to green?

      Here is how
      Add this code to the CEWP where you initiate the CommentBox solution:

      <style type="text/css">
      .cBoxAddCommentWrap{
          margin-left: auto !important;
          margin-right: auto !important;
          background-color:green !important;
      }
      #cBox_A{
          margin-left: auto !important;
          margin-right: auto !important;
      }
      </style>

      Ensure you put it below the “link” to the existing CSS files as this setting overrides some of the styles.

      Please note that the “cBox_A” name is the one specified in the “placeholderID” of the “argObj” in the function call to function “spjs.cBox.init”.

      Alexander

Viewing 0 reply threads
  • You must be logged in to reply to this topic.