Styling Polls

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
robinmarek
Forum Members
Forum Members
Posts: 208
Joined: Thu Nov 13, 2008 4:02 pm

Styling Polls

Post by robinmarek »

I have CMSMS 1.5.2 and Polls Made Simple installed, and it's the one module I find hard to style, it always seems to look messy.

Anyone got any styling tips for making it look a bit neater? I think it would look better in a tabular layout but can't get that to work either  :-\
zztwhitezz

Re: Styling Polls

Post by zztwhitezz »

Not sure if this is what you're looking for but I did the following and made it look a bit neater:

1) Changes Polls Template.  Made the inputs precede the text lables.
{* valid and no tables *}

{$pollname}
{$formstart}
{foreach from=$options item=option}

uniqueid}' type='radio' name='pollvotingchoice_{$pollid}' value='{$option->value}' />
uniqueid}'>{$option->label}

{/foreach}

{$formend}{$peekform}


2) Added a new stylesheet called PollsMadeSimple with the following. 
.pollvoteform {
    padding: 0.5em 0.5em 1em;  /* padding for the Polls */
    margin: 0 0.5em 1em 0.5em; /* margin to the bottom of the Polls section */
    border-bottom: 1px solid #ccc;
    font-size: 80%;
}
Remember to "Attach" or "Associate" this to the base template.

I've yet to make PMS actually work*, so it's kinda stupid for me to fiddle with this part, but I did.  Hope this is somehow helpful for you.
Tw

*(I can create and see the forms, enable/disable polls, enable/disable peeks, but no data is ever saved from anyone responding to the poll form. I'm about to give up on the module all together and move on, frankly.)
robinmarek
Forum Members
Forum Members
Posts: 208
Joined: Thu Nov 13, 2008 4:02 pm

Re: Styling Polls

Post by robinmarek »

How strange, never had any problems with it working, just the styling - are you using the latest version??
Post Reply

Return to “Layout and Design (CSS & HTML)”