Page 1 of 1
Styling Polls
Posted: Fri Feb 20, 2009 9:29 pm
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

Re: Styling Polls
Posted: Fri Feb 20, 2009 11:01 pm
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.)
Re: Styling Polls
Posted: Mon Feb 23, 2009 12:05 pm
by robinmarek
How strange, never had any problems with it working, just the styling - are you using the latest version??