html - Set buttons at the rightmost part of the page -


sorry if such simple question i'm having hard time when comes css , stuff that.

so question how put these 2 buttons @ rightmost part. that.

here code:

echo "<div class='container table-responsive'>                     <table style='width:100;'>                             <tr>                                 <td align='right'>                                     <h5>".$filename2."</h5>                                 </td>                                 <td>                                      <button type='button' class='btn btn-info btn-sm' data-toggle='modal' data-target='#$id'>                                     <span class='glyphicon glyphicon-search'></span> view                                      </button>                                      <div id='$id' class='modal fade' role='dialog'>                                         <div class='modal-dialog modal-lg'>                                              <div class='modal-content'>                                                 <div class='modal-header'>                                                     <button type='button' class='close' data-dismiss='modal'>&times;</button>                                                     <h4 class='modal-title'>$filename2</h4>                                                 </div>                                                 <div class='modal-body' style='overflow-y: auto;word-wrap:break-word;'>".file_get_contents($filename).                                                 "</div>                                                 <div class='modal-footer'>                                                     <button type='button' class='btn btn-default' data-dismiss='modal'>close</button>                                                 </div>                                             </div>                                          </div>                                     </div>                                      <a href='$filename' download class='btn btn-primary btn-sm'>                                     <span class='glyphicon glyphicon-download-alt'></span> save                                     </a>                                 </td>                             </tr>                     </table>                 </div>"; 

here image of it: http://imgur.com/vmhmo1s

you can add property:

float:right; 

Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -