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
Styling Polls
-
robinmarek
- Forum Members

- Posts: 208
- Joined: Thu Nov 13, 2008 4:02 pm
Styling Polls
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
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
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.)
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

- Posts: 208
- Joined: Thu Nov 13, 2008 4:02 pm
Re: Styling Polls
How strange, never had any problems with it working, just the styling - are you using the latest version??
