html - Implement spacing between td cell in the table -


i created table consist of 1 row , consists of 3 td cell in table. however, td cells messy close though align content in td cell. code found below...

 <table>                 <tr>                     <td style="color:white;background-color:#000000;">events today: <font></font></td>                     <td align="left" id="totalattack" style="color:white;background-color:#000000;">0      </td>                     <td align="right"id="todaytime" style="color:white;background-color:#000000;">current time</td>                 </tr>             </table>      window.onload=starttime;     function starttime() {         var today = new date();         var h = today.gethours();         var min = today.getminutes();         var s = today.getseconds();         var y = today.getfullyear();         var mon = today.getmonth()+1;         var d = today.getdate();         min = checktime(min);         s = checktime(s);         mon = checktime(mon);         d = checktime(d);         document.getelementbyid('todaytime').innerhtml = "   local date:"+ d + "/" + mon + "/" +y + "   local time:" + h + ":" + min + ":" + s + " sgt ";         var t = settimeout(starttime, 500);     }     function checktime(i) {         if (i < 10) {i = "0" + i};  // add 0 in front of numbers < 10         return i;     } 

my image this....

enter image description here

my question how create spacing between 0 , local date.... want space between 0(events today) , local date.. wont messy.... how it? please me...

there possibilities so. reynald's, elvis, javaevgen ok.

another css-like

#todaytime, #totalattack { padding: 0 10px;} 

spaces after tags have usally no effect, multiple space between in counted 1 space. use non-breaking space when want each space have effect ( )

document.getelementbyid('todaytime').innerhtml = "&nbsp;local date:" ...  

Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -