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
    • #6847
      Alexander Bautz

      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">
          margin-left: auto !important;
          margin-right: auto !important;
          background-color:green !important;
          margin-left: auto !important;
          margin-right: auto !important;

      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”.


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