WordPress.org

Ready to get started?Download WordPress

Forums

YOP Poll
[resolved] Center Polls in post (5 posts)

  1. PhenoMik
    Member
    Posted 11 months ago #

    Hi,
    I noticed that all the polls are aligned to the left of the article page. How can I center the whole box of the poll in the article?

    Thanks in advance for your support.

    Michele

    http://wordpress.org/plugins/yop-poll/

  2. YOP
    Member
    Plugin Author

    Posted 11 months ago #

    Hi Michele,

    Please provide a link to the page you are referring to so we may assist.

    Regards,

    YOP Team

  3. PhenoMik
    Member
    Posted 11 months ago #

    `the site is not online yet but it is in manteinance mode. Anyway I did a screenshot of what I want. The box with the poll, instead of aligning it to the left as I get using any template, I would like it centered with respect to the post. Is it possible?

    Here are the link of screenshot:

    http://www.tecnoguide.it/images/Cattura.JPG

  4. YOP
    Member
    Plugin Author

    Posted 11 months ago #

    Hey Michele,

    Please go to "Templates" and edit the one you use for your poll.
    In the CSS section, just under the first line add margin:auto;
    so you'll have

    #yop-poll-container-%POLL-ID% {
    margin:auto;

    and save.

    Best wishes,

    YOP Team

  5. PhenoMik
    Member
    Posted 11 months ago #

    I tried to do as you told me, but I did not worked. Then I saw that the syntax of other controls 2 involves the colon (:), so I tried to confirm the syntax and I worked by putting the first few lines like this:

    #yop-poll-container-%POLL-ID% {
    width:%POLL-WIDTH%;
    margin: 0 auto;

    Thanks anyway for putting me on the right track, now is exactly how I wanted it.

    Michele

  6. PhenoMik
    Member
    Posted 11 months ago #

    Hi,
    I tried to do as you told me, but I did not worked. Then I saw that the syntax of other controls 2 involves the colon (:), so I tried to confirm the syntax and I worked by putting the first few lines like this:

    #yop-poll-container-%POLL-ID% {
    width:%POLL-WIDTH%;
    margin: 0 auto;

    Thanks anyway for putting me on the right track, now is exactly how I wanted it.

    Regards,
    Michele

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.