Prikazi cijelu temu 21.03.2018 18:28
Avko Van mreze
Administrator
Registrovan od:28.05.2014
Lokacija:zagreb


Predmet:Re: Kako razvuci dugme na cijelu celiju table
je stavio sam na krivo mjesto.



No pojavio se novi problem, Morat cu sa formom jer zelim poslati neke varijable na tu drugu stranu, moja proba nije kao ono tvoje



ustvari svasta sam napisao pod style, a nisam bas u tome da se snalazim. evo i kod:

PreuzmiIzvorni kôd (HTML):
  1.  
  2. <title>nav</title>
  3. table {
  4.         width: 100%;
  5.                 height: 100%;
  6.                 border: 10;
  7.                 cellspacing: 0;
  8.                 cellpadding: 0;
  9.     }
  10.  
  11.     .width-20 td {
  12.         width: 20%;
  13.     }
  14.  
  15.     .width-25 td {
  16.         width: 50%;
  17.     }
  18.  
  19.     .buttons {
  20.         text-align: center;
  21.         font-size: 1.0em;
  22.         font-weight: bold;
  23.         line-height: 200%;
  24.     }
  25.     .buttons a {
  26.         display: inline-block;
  27.         height: 100%;
  28.         width: 100%;
  29.         margin-bottom: 0.5em;
  30.         padding-top: .6em;
  31.         padding-bottom: .6em;
  32.         color: #fff;
  33.         background-color: #aaabbb;
  34.         border-radius: 5px;
  35.         border: solid #cccccc 1px;
  36.         box-shadow: 2px 2px 1px #888888;
  37.     }
  38.     .buttons a:active {
  39.         box-shadow: 1px 1px 0px #888888;
  40.     }
  41.         .buttons form button{
  42.         display: inline-block;
  43.         height: 100%;
  44.         width: 100%;
  45.         margin-bottom: 0.5em;
  46.         padding-top: .6em;
  47.         padding-bottom: .6em;
  48.         color: #fff;
  49.         background-color: #aaabbb;
  50.         border-radius: 5px;
  51.         border: solid #cccccc 1px;
  52.         box-shadow: 2px 2px 1px #888888;
  53.     }
  54. </head>
  55.  
  56.  
  57. <table class="buttons width-25">
  58.  
  59. <tr><td></td></tr> <!-- kolona -->
  60.  
  61. <tr><td class="button"><a href="proba.html" target="main" >ZXZ</a></td></tr>
  62.  
  63. <tr><td><a href="proba.html" target="main" class="button">PROBA</a></td></tr>
  64.  
  65. <tr><td><a href="about.html" target="main" class="button">ABOUT</a></td></tr>
  66.  
  67. <tr><td><a href="courses.html" target="main" class="button">COURSES</a></td></tr>
  68.  
  69. <tr><td><a href="department.html" target="main" class="button">DEPARTMENT</a></td></tr>
  70.  
  71. <tr><td><a href="contact.html" target="main" class="button">CONTACT US</a></td></tr>
  72.  
  73. <tr><td>
  74.         <form class="buttons width-25" action="proba.html" target="main" method="POST">
  75.                 <!-- First name: <input type="text" name="fname"><br> -->
  76.                 <!-- Last name: <input type="text" name="lname"><br> -->
  77.                 <input type="hidden" name="varname" value="12345" />
  78.                 <button type="submit">PROBA</button>
  79.                 <!-- <button type="submit" formtarget="_blank">Submit to a new window</button> -->
  80.         </form>
  81. </td></tr>
  82. </body>
  83. </html>

zivot je moja domovina.