Is there a way to move polls next to each other in a post?

  • Unknown's avatar

    I made 4 slim polls using the add poll feature in the old editor (PollDaddy). I lined them up on the same text line, but when I previewed the post, the polls still lined up one after the other, making an unnecessarily long post (on a page). I’d really like to line them up one next to the other.

    I have the CSS upgrade but am not very good at using CSS. I go to WC school to find the right CSS but am stumped on an answer to this problem.

    Is there a way to line up polls next to each other or must they run on after another?

    The page is still in draft form It is called Vote for the Top Books of 2014!

    Thanks for all the help!

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hi there!

    Sure! So, can you edit your post and remove all the spaces between your polls? So it should look something like this:

    [polldaddy poll=XXXXXXX][polldaddy poll=XXXXXXX][polldaddy poll=XXXXXXX][polldaddy poll=XXXXXXX]

    Then, go to Appearance → Customize → CSS and add the following:

    #PDI_container8719024, #PDI_container8719057, #PDI_container8719065, #PDI_container8719071 {
    	float: left;
    	margin-right: 45px;
    }

    Try that and let me know how it looks. We may need to make more adjustments after that.

  • Unknown's avatar

    It worked great! Thank you!

    I do have a couple of questions.

    By changing the CSS, does this mean all polls will be placed side-by-side or will this CSS need to be added each time?

    If I write another page post, or a post, with polls and do not want them lined up, do I need to erase the CSS I just added?
    If so, this will mess up this page post. How would I keep that from happening?

    Again, thank you so much. This was my first actual use of the CSS upgrade.

  • Unknown's avatar

    It looks like the code Grace gave you is specific to the polls on the one page. That means if you want to arrange future polls this way, you’ll need to add new, similar but not identical code.

    It also means the existing code won’t impact future polls so you are in the clear there.

  • The topic ‘Is there a way to move polls next to each other in a post?’ is closed to new replies.