Prikazi cijelu temu 22.03.2018 16:31
zxz Van mreze
Administrator
Registrovan od:03.02.2009
Lokacija:Tuzla


Predmet:Re: Kako razvuci dugme na cijelu celiju table
Probaj ovako:
Upotrijebi klasu
PreuzmiIzvorni kôd (HTML):
  1. </head>
  2.         table {
  3.         width: 100%;
  4.                 height: 100%;
  5.                 border: 10;
  6.                 background-color: #1fd100;
  7.                 cellspacing: 0;
  8.                 cellpadding: 0;
  9.     }
  10.  
  11.         .width-25 td {
  12.         width: 100%;
  13.     }
  14.  
  15.     /** ovo sam dodao **/
  16.     .buttons{
  17.         text-align: center;
  18.         font-size: 1.0em;
  19.         font-weight: bold;
  20.         line-height: 0;
  21.     }
  22.  .button{
  23.         margin-top: 0;
  24.         margin-bottom: 0;
  25.         width: 400px;
  26.         height: 100px;
  27.         padding-bottom: 50%;
  28.         color: #000;
  29.         background-color: #1fd100;
  30.         border-radius: 0;
  31.         border: solid #cccccc 1px;
  32.         box-shadow: 2px 2px 1px #888888;
  33.     }
  34.  
  35.  
  36.  
  37.  
  38. <table class="buttons width-25" border="10">
  39.  
  40. <tr><td>
  41.         <form  target="main" method="POST">
  42.                 <input type="hidden" name="korisnik" value="12345" />
  43.                 <button type="submit" class=button>BUTTON 1</button>
  44.         </form>
  45. </td></tr>
  46.  
  47. <tr><td>
  48.         <form action="button_2.php" target="main" method="POST">
  49.                 <input type="hidden" name="korisnik" value="12345" />
  50.                 <button type="submit">BUTTON 2</button>
  51.         </form>
  52. </td></tr>
  53.  
  54. </body>
  55. </html>

Podrška samo putem foruma, jer samo tako i ostali imaju koristi od toga.
Ovaj post je ureden 1 puta. Posljednja izmjena 22.03.2018 16:37 od strane Avko.