Advertisement
Kiporralixo

Untitled

Mar 2nd, 2019
2,628
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <style>
  2.     table{
  3.         display: block;
  4.         width:900px;
  5.         min-height: 100px;
  6.         position: relative;
  7.         overflow: hidden;
  8.         margin: auto;
  9.         margin-top: 50px;
  10.     }
  11.     .nome{
  12.         display: inline-block;
  13.         width:300px;
  14.         border: 2px solid black;
  15.     }.numero{
  16.         display: inline-block;
  17.         width:80px;
  18.         margin-left: 5px;
  19.         border: 2px solid black;
  20.         text-align: right;
  21.        
  22.        
  23.     }
  24. </style>
  25. <table>
  26.    
  27. <?php
  28.  
  29. $i = 0;
  30.  
  31. for ($i = 0; $i < 10; $i++){
  32.     echo "<tr>";
  33.     echo "<td class='nome'>Nome de teste ".rand(1,9) * rand(1, 999999999)."</td>";
  34.     echo "<td class='numero'>".rand(10,9999)."</td>";
  35.     echo "<td class='numero'>".rand(10,9999)."RS</td>";
  36.     echo "<td class='numero'>".rand(100,9999)."RS</td>";
  37.     echo "<td class='numero'>".rand(100,9999)."RS</td>";
  38.    
  39.     echo "</tr>";
  40. }
  41. ?>
  42. </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement