zxz
Administrator
Registrovan od:03.02.2009
Lokacija:Tuzla
Predmet:
Re: Kako razvuci dugme na cijelu celiju table
Probaj ovako:
Upotrijebi klasu
Preuzmi
Izvorni kôd (HTML):
<
/
head
>
<
style
>
table {
width: 100%;
height: 100%;
border: 10;
background-color: #1fd100;
cellspacing: 0;
cellpadding: 0;
}
.width-25 td {
width: 100%;
}
/** ovo sam dodao **/
.buttons{
text-align: center;
font-size: 1.0em;
font-weight: bold;
line-height: 0;
}
.button{
margin-top: 0;
margin-bottom: 0;
width: 400px;
height: 100px;
padding-bottom: 50%;
color: #000;
background-color: #1fd100;
border-radius: 0;
border: solid #cccccc 1px;
box-shadow: 2px 2px 1px #888888;
}
<
/
style
>
<
body
>
<
table
class
=
"buttons width-25"
border
=
"10"
>
<
tr
><
td
>
<
form
target
=
"main"
method
=
"POST"
>
<
input
type
=
"hidden"
name
=
"korisnik"
value
=
"12345"
/
>
<
button
type
=
"submit"
class
=
button>
BUTTON 1
<
/
button
>
<
/
form
>
<
/
td
><
/
tr
>
<
tr
><
td
>
<
form
action
=
"button_2.php"
target
=
"main"
method
=
"POST"
>
<
input
type
=
"hidden"
name
=
"korisnik"
value
=
"12345"
/
>
<
button
type
=
"submit"
>
BUTTON 2
<
/
button
>
<
/
form
>
<
/
td
><
/
tr
>
<
/
table
>
<
/
body
>
<
/
html
>
Podrska samo putem foruma, jer samo tako i ostali imaju koristi od toga.
Ovaj post je ureden
1
puta. Posljednja izmjena 22.03.2018 17:37 od strane Avko.