How can I change the Poll widget like this http://prntscr.com/4lf50p ?
Last edited by Black-Shadow on Sat 11 Oct - 11:33; edited 3 times in total
.module td[title*="%"]:after { content:attr(title) }
<!----Created by: TheTwistedKilla---->
<table style="width: 30%;" align="center" border="1" cellpadding="1" cellspacing="1">
  Â
<tbody>
<tr>
     <td>
<div class="mainhead clearfix">
 <p class="options">{CLOSE_POLL}</p>
Â
 <p class="h2"><img src="http://i884.photobucket.com/albums/ac50/TwistedKilla/Stuff/bargraph_zps7e3a1416.png" alt="Smiley face" height="42" width="42"> <strong>{POLL_QUESTION}</strong></p>
    <p class="total"  align="right"><strong>Votes : {TOTAL_VOTES}</strong>
</div>
     </td></tr><td>
<table>
<tr>
    <th> </th>
 <th> </th>
    <th> </th>
Â
 </tr>
 <tr>
 <td>{poll_option.POLL_OPTION_CAPTION}</td>
  <td>{poll_option.POLL_OPTION_PERCENT}</td>
  <td>[ {poll_option.POLL_OPTION_RESULT} ]</td>
  </tr>
</table>
<dl>
<dt> </dt>
<dd>{L_POLL_HIDE_RESULT}</dd>
</dl>
<div class="frm-buttons">
<!-- BEGIN cancel_vote -->
<em><a href="{U_CANCEL_VOTE}">{L_CANCEL_VOTE}</a></em><br /><br />
<!-- END cancel_vote -->
</div>
     </td>       Â
Â
</tbody>
</table>
       <form id="poll_ballot" class="zzPoll" method="post" action="{S_POLL_ACTION}">
          <h3>
             {POLL_QUESTION} {CLOSE_POLL}
             <span class="totalvote">
             </span>
          </h3>
          <ul>
             <!-- BEGIN poll_option -->
             <li>
                <p class="poll-c">
                   <input id="poll{poll_option.POLL_OPTION_ID}" type="{poll_option.POLL_TYPE_BUTTON}" name="vote_id[]" value="{poll_option.POLL_OPTION_ID}" />
                   <label for="poll{poll_option.POLL_OPTION_ID}">{poll_option.POLL_OPTION_CAPTION}</label>
                </p>
             </li>
             <!-- END poll_option -->
          </ul>
          <div class="frm-buttons">
             <input type="submit" name="submit" value="Vote" />
            <a href="{U_VIEW_RESULTS}" class="view_vote">Δείτε τα αποτελέσματα</a>
             {S_HIDDEN_FIELDS}
          </div>
       </form>
       <script type="text/javascript">
          //<![CDATA[
          function zzPoll(a) {
             $("#poll_ballot .totalvote").empty();
             $("#poll_ballot").hide().after(a.children().hide().fadeIn());
             $("#poll_result .poll_w").attr("data-width", function() {
                return $(this).outerWidth()
             }).width(0);
             $("#poll_result .poll_w").each(function() {
                $(this).animate({
                   width: $(this).data("width")
                }, 1500)
             })
          }
          function fixClick() {
             $("#poll_ballot .frm-buttons *").hide();
             $("#poll_ballot .frm-buttons").css("background", "url(http://i57.servimg.com/u/f57/17/05/17/70/preloa10.gif) no-repeat center transparent")
          }
          $("#poll_ballot .view_vote").click(function(a) {
             a.preventDefault();
             fixClick();
             history.replaceState(null, null, "?vote=viewresult");
             $("#poll_ballot .totalvote").html('[ <span style="color:#0056D8">Ενημέρωση...</span> ]');
             $("<div />").load(this.href + " #poll_result", function() {
                zzPoll($(this));
                $("#poll_result .frm-buttons").html('<a class="pClose" href="javascript:;">Πίσω στην ψηφοφορία</a>');
                $("#poll_result .pClose").click(function() {
                   history.replaceState(null, null, location.pathname);
                   $("#poll_result").remove();
                   $("#poll_ballot").fadeIn();
                   $("#poll_ballot .frm-buttons *").show();
                   $("#poll_ballot .frm-buttons").removeAttr("style")
                })
             })
          });
          $("#poll_ballot").submit(function(a) {
             var b = $(this).serializeArray(),
                c = $(this).attr("action");
             $.ajax({
                url: c,
                type: "POST",
                data: b,
                success: function(a, d, b) {
                   $("<div />").load(location.origin + location.pathname + " #poll_result", function() {
                      zzPoll($(this))
                   })
                },
                error: function(a, b, c) {
                   console.error(b)
                }
             });
             a.preventDefault();
             a.off()
          });
          $("#poll_ballot input[name='submit']").click(function(a) {
             a.preventDefault();
             history.replaceState(null, null, location.pathname);
             $("#poll_ballot .poll-c input:checked").length ? (fixClick(), $("#poll_ballot .totalvote").html('[ <span style="color:#0056D8">Ενημέρωση...</span> ]'), $("#poll_ballot").submit()) : $("#poll_ballot .totalvote").html('[ <span style="color:red">Δεν έχετε επιλέξει τίποτα!</span> ]')
          });
          $(window).one("resize", function() {
             $(".zzPoll .poll_w").css("width", function() {
                return $(this).next().next().text()
             })
          });
          //]]>
       </script>
       <div id="poll_result" class="zzPoll">
          <h3>
             {POLL_QUESTION} {CLOSE_POLL}
             <span class="totalvote">
                [
                <strong>{TOTAL_VOTES}</strong> Σύνολο Ψήφων ]
             </span>
          </h3>
          <ul>
             <!-- BEGIN poll_option -->
             <li>
                <p class="poll_t" title="{poll_option.POLL_OPTION_CAPTION}">{poll_option.POLL_OPTION_CAPTION}</p>
                <div class="poll_m">
                   <p class="poll_w" style="width:{poll_option.POLL_OPTION_PERCENT}"></p>
                   <span class="result">{poll_option.POLL_OPTION_RESULT}</span>
                   <span class="percent">{poll_option.POLL_OPTION_PERCENT}</span>
                </div>
             </li>
             <!-- END poll_option -->
          </ul>
          <!-- BEGIN switch_hide_result -->
          <dl>
             <dt> </dt>
             <dd>{L_POLL_HIDE_RESULT}</dd>
          </dl>
          <!-- END switch_hide_result -->
          <div class="frm-buttons">
             <!-- BEGIN cancel_vote -->
             <a class="c_vote" href="{U_CANCEL_VOTE}">Skip to vote</a>
             <!-- END cancel_vote -->
             <!-- BEGIN switch_user_logged_out -->
             <p>{L_NOT_CONNECTED} {L_LOGIN_REGISTER}</p>
             <!-- END switch_user_logged_out -->
          </div>
       </div>
       <script type="text/javascript">
          //<![CDATA[
          $("#poll_result .poll_w").attr("data-width", function() {
             return $(this).outerWidth()
          }).width(0);
          $(window).on("load scroll", function() {
             $("#poll_result").height() + $("#poll_result").offset().top < $(window).scrollTop() + $(window).height() && ($("#poll_result:not(.displayed) .poll_w").each(function() {
                $(this).animate({
                   "width": $(this).data("width")
                }, 1500)
             }), $("#poll_result").addClass("displayed"))
          });
          $("#poll_result .frm-buttons:empty").remove();
          $(window).one("resize", function() {
             $(".zzPoll .poll_w").css("width", function() {
                return $(this).next().next().text()
             })
          });
          //]]>
       </script>
<style type="text/css">
<!--
td { vertical-align: top; }
.leftcolumn { max-width: 20%;}
.centercolumn { width: 50px; }
.rightcolumn { min-width:30%;}
.leftcolumnb { width: 40%;}
.centercolumnb { min-width:70px;}
.rightcolumnb { min-width:30%;}
.tabletoo { width:74%;}
-->
</style>
<div class="mainheadclearfix">
 <p class="h2"><img src="http://i884.photobucket.com/albums/ac50/TwistedKilla/Stuff/bargraph_zps7e3a1416.png" width="40" height="40"> <strong>{POLL_QUESTION}</strong></p>
 Â
</div>
 <table class="tabletoo">
  <td class="tabletoo"><p class="total"  align="right">[<strong>{TOTAL_VOTES} Vote</strong>]</p></td>
     </table>
<div class="maincontent frm">
<fieldset class="frmset">
<!-- BEGIN poll_option -->
<dl>
 Â
<table>
<tr>
<th class="leftcolumnb"> </th>
<th class="centercolumnb"> <th>
<th class="rightcolumnb"> <th>
  </tr>
 <tr>
  <td class="leftcolumn">{poll_option.POLL_OPTION_CAPTION}</td>
  <td class="centercolumn"><p align="right">{poll_option.POLL_OPTION_PERCENT}</p></td>
  <td class="rightcolumn"><p align="right">[{poll_option.POLL_OPTION_RESULT}]</p></td>
  </tr>
</table>
</dl>
<!-- END poll_option -->
<!-- BEGIN switch_hide_result -->
<dl>
<dt> </dt>
<dd>{L_POLL_HIDE_RESULT}</dd>
</dl>
<!-- END switch_hide_result -->
</fieldset>
<div class="frm-buttons">
<!-- BEGIN cancel_vote -->
<em><a href="{U_CANCEL_VOTE}">{L_CANCEL_VOTE}</a></em><br /><br />
<!-- END cancel_vote -->
</div>
</div>
<div class="module main">
   <div class="main-head">
      <a name="sondage"></a>
      <div class="h3">{L_POLL}</div>
   </div>
   <div class="main-content">
      {POLL_DISPLAY}
   </div>
</div>
<div class="ballot">
   <form method="POST" action="{S_POLL_ACTION}">
      <h4>{POLL_QUESTION}</h4>
      <fieldset class="clearfix">
         <!-- BEGIN poll_option -->
            <dl>
               <dd><input type="{poll_option.POLL_TYPE_BUTTON}" name="vote_id[]" value="{poll_option.POLL_OPTION_ID}" /> </dd>
               <dt><label>{poll_option.POLL_OPTION_CAPTION}</label></dt>
            </dl>
            <div class="clear"></div>
         <!-- END poll_option -->
      </fieldset>
      <fieldset class="center">
         <input type="submit" name="submit" value="{L_SUBMIT_VOTE}" class="button1" />
      </fieldset>
      <p class="center"><b><a href="{U_VIEW_RESULTS}">{L_VIEW_RESULTS}</a></p>
      {S_HIDDEN_FIELDS}
   </form>
</div>
   <style type="text/css">
   <!--
   td { vertical-align: top; }
   .leftcolumn { max-width: 20%;}
   .centercolumn { width: 50px; }
   .rightcolumn { min-width:30%;}
   .leftcolumnb { width: 40%;}
   .centercolumnb { min-width:70px;}
   .rightcolumnb { min-width:30%;}
   .tabletoo { width:100%;}
   -->
   </style>
   <div class="mainheadclearfix">
   Â
     <p class="h2"><img src="http://i83.servimg.com/u/f83/16/58/89/73/combo10.png" width="26" height="26"> <strong>{POLL_QUESTION}</strong></p>
      Â
   </div>
     <table class="tabletoo">
       <td class="tabletoo"><p class="total" align="right">[<strong>{TOTAL_VOTES} Ψήφοι</strong>]</p></td>
             </table>
   <div class="maincontent frm">
    <fieldset class="frmset">
    <!-- BEGIN poll_option -->
    <dl>
      Â
    <table>
   <tr>
   <th class="leftcolumnb"> </th>
   <th class="centercolumnb"> <th>
   <th class="rightcolumnb"> <th>
       </tr>
     <tr>
       <td class="leftcolumn">{poll_option.POLL_OPTION_CAPTION}</td>
       <td class="centercolumn"><p align="right">{poll_option.POLL_OPTION_PERCENT}</p></td>
       <td class="rightcolumn"><p align="right">[{poll_option.POLL_OPTION_RESULT}]</p></td>
       </tr>
   </table>
    </dl>
    <!-- END poll_option -->
    <!-- BEGIN switch_hide_result -->
    <dl>
    <dt> </dt>
    <dd>{L_POLL_HIDE_RESULT}</dd>
    </dl>
    <!-- END switch_hide_result -->
    </fieldset>
    <div class="frm-buttons">
   Â
    <!-- BEGIN cancel_vote -->
    <em><a href="{U_CANCEL_VOTE}">{L_CANCEL_VOTE}</a></em><br /><br />
    <!-- END cancel_vote -->
    </div>
   </div>