Chylin
@Graham, please i need a voting poll that will be showing the percent of the vote, urgent
Chylin
Graham i have goto that place before, and i did not understand it, can you just give me d codes here
Graham
The basic code of a poll is
<xt:poll id="Any unique value" voted_text="Thank you for voting!" question="your question" show_results="always" answer1="yes" answer2="no" answer3="maybe" />
Copy code add as many answers as you need like
answer4=""
answer5=""
the Css classes
/* Outer container */
.xt_container { }
/* Poll form */
.xtpoll {}
/* The poll question is in a h3 tag with two classes */
.xtpoll h3 {padding:0;margin:0}
.question {}
.xt_heading {}
/* Poll answer div */
.answer {}
/* Poll answer text*/
.answer label {}
/* Poll submit button div */
.submit {}
/* Poll submit button */
.xt_button {}
/* Poll results */
/* The poll response text is in a h3 tag with two classes */
.xt_heading {}
.voted {}
/* Each answer is in a div with the.result class*/
.result {}
Copy code
Chylin
Graham ok thanks, am i to put the the css in the page of the poll, and will it show the percent of the vote
Graham
Chylin you can add them on the on the page or in global_stylesheet.css or any css you have linked
the output is as on my demo page further customizing would require js or xtscript