Okay
  Public Ticket #960542
Centering a wpDataTables chart in Word Press
Closed

Comments

  •  2
    Joe Howie started the conversation

    I've created a pie chart using wpDataTables and successfully embedded it in a WordPress Post. However, the pie chart aligns to the left margin and I'd like to center it between the left and right margins. How can I do that?

  • [deleted] replied

    Hi Joe,

    Could you please send me a link so I can take a look

  •  2
    Joe Howie replied

    Hi Miljko,

    I was trying to use the chart in a post, but I copied the relevant parts of the post into the following page which exhibits the same type of behavior (i.e., doesn't center the chart):

    http://beyondrecognition.net/testing-chart/

  • [deleted] replied

    Hi Joe,

    Please try to add this code

    div#wpDataChart_1>div>div {
        margin: 0 auto;
    }
    

    in Custom CSS field on Settings page of our plugin

  •  2
    Joe Howie replied

    Hi Miljko,

    Thanks, that did the trick!

    Joe