- Beranda
- Komunitas
- Tech
- Programmer Forum
[ask]Tanya css
TS
revolution32
[ask]Tanya css
selamat malam ,
saya mau buat kolom input disebelah kanan seperti disebelah kiri , caranya gimana ??
makasih
saya mau buat kolom input disebelah kanan seperti disebelah kiri , caranya gimana ??
Spoiler for css:
<style type="text/css">
* { margin: 0px; padding: 0px; }
label {
font-size: 20px;
color: #666;
}
form {
float: left;
border: 1px solid #ddd;
padding: 30px 40px 20px 40px;
margin: 15px 0 0 0;
width: 715px;
background: #fff;
/* -- CSS3 - define rounded corners for the form -- */
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
/* -- CSS3 - create a background graident -- */
background: -webkit-gradient(linear, 0% 0%, 0% 40%, from(#EEE), to(#FFFFFF));
background: -moz-linear-gradient(0% 40% 90deg,#FFF, #EEE);
/* -- CSS3 - add a drop shadow -- */
-webkit-box-shadow:0px 0 50px #ccc;
-moz-box-shadow:0px 0 50px #ccc;
box-shadow:0px 0 10px #ccc;
}
fieldset { border: none; }
#user-details {
float: left;
width: 230px;
}
#user-message {
float: right;
width: 405px;
}
input, textarea {
padding: 8px;
margin: 4px 0 20px 0;
background: #fff;
width: 220px;
font-size: 14px;
color: #555;
border: 1px #ddd solid;
/* -- CSS3 Shadow - create a shadow around each input element -- */
-webkit-box-shadow: 0px 0px 4px #aaa;
-moz-box-shadow: 0px 0px 4px #aaa;
box-shadow: 0px 0px 4px #aaa;
/* -- CSS3 Transition - define what the transition will be applied to (i.e. the background) -- */
-webkit-transition: background 0.3s linear;
}
input:hover, textarea:hover {
background: #eee;
}
input.submit {
width: 150px;
color: #eee;
text-transform: uppercase;
margin-top: 10px;
background-color: #18a5cc;
border: none;
/* -- CSS3 Transition - define which property to animate (i.e. the shadow) -- */
-webkit-transition: -webkit-box-shadow 0.3s linear;
/* -- CSS3 - Rounded Corners -- */
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
/* -- CSS3 Shadow - create a shadow around each input element -- */
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#18a5cc), to(#0a85a8));
background: -moz-linear-gradient(25% 75% 90deg,#0a85a8, #18a5cc);
}
input.submit:hover {
-webkit-box-shadow: 0px 0px 20px #555;
-moz-box-shadow: 0px 0px 20px #aaa;
box-shadow: 0px 0px 20px #555;
cursor: pointer;
}
.select1 {
padding: 8px;
margin: 4px 0 20px 0;
background: #fff;
width: 220px;
font-size: 14px;
color: #555;
border: 1px #ddd solid;
/* -- CSS3 Shadow - create a shadow around each input element -- */
-webkit-box-shadow: 0px 0px 4px #aaa;
-moz-box-shadow: 0px 0px 4px #aaa;
box-shadow: 0px 0px 4px #aaa;
/* -- CSS3 Transition - define what the transition will be applied to (i.e. the background) -- */
-webkit-transition: background 0.3s linear;
}
</style>
* { margin: 0px; padding: 0px; }
label {
font-size: 20px;
color: #666;
}
form {
float: left;
border: 1px solid #ddd;
padding: 30px 40px 20px 40px;
margin: 15px 0 0 0;
width: 715px;
background: #fff;
/* -- CSS3 - define rounded corners for the form -- */
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
/* -- CSS3 - create a background graident -- */
background: -webkit-gradient(linear, 0% 0%, 0% 40%, from(#EEE), to(#FFFFFF));
background: -moz-linear-gradient(0% 40% 90deg,#FFF, #EEE);
/* -- CSS3 - add a drop shadow -- */
-webkit-box-shadow:0px 0 50px #ccc;
-moz-box-shadow:0px 0 50px #ccc;
box-shadow:0px 0 10px #ccc;
}
fieldset { border: none; }
#user-details {
float: left;
width: 230px;
}
#user-message {
float: right;
width: 405px;
}
input, textarea {
padding: 8px;
margin: 4px 0 20px 0;
background: #fff;
width: 220px;
font-size: 14px;
color: #555;
border: 1px #ddd solid;
/* -- CSS3 Shadow - create a shadow around each input element -- */
-webkit-box-shadow: 0px 0px 4px #aaa;
-moz-box-shadow: 0px 0px 4px #aaa;
box-shadow: 0px 0px 4px #aaa;
/* -- CSS3 Transition - define what the transition will be applied to (i.e. the background) -- */
-webkit-transition: background 0.3s linear;
}
input:hover, textarea:hover {
background: #eee;
}
input.submit {
width: 150px;
color: #eee;
text-transform: uppercase;
margin-top: 10px;
background-color: #18a5cc;
border: none;
/* -- CSS3 Transition - define which property to animate (i.e. the shadow) -- */
-webkit-transition: -webkit-box-shadow 0.3s linear;
/* -- CSS3 - Rounded Corners -- */
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
/* -- CSS3 Shadow - create a shadow around each input element -- */
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#18a5cc), to(#0a85a8));
background: -moz-linear-gradient(25% 75% 90deg,#0a85a8, #18a5cc);
}
input.submit:hover {
-webkit-box-shadow: 0px 0px 20px #555;
-moz-box-shadow: 0px 0px 20px #aaa;
box-shadow: 0px 0px 20px #555;
cursor: pointer;
}
.select1 {
padding: 8px;
margin: 4px 0 20px 0;
background: #fff;
width: 220px;
font-size: 14px;
color: #555;
border: 1px #ddd solid;
/* -- CSS3 Shadow - create a shadow around each input element -- */
-webkit-box-shadow: 0px 0px 4px #aaa;
-moz-box-shadow: 0px 0px 4px #aaa;
box-shadow: 0px 0px 4px #aaa;
/* -- CSS3 Transition - define what the transition will be applied to (i.e. the background) -- */
-webkit-transition: background 0.3s linear;
}
</style>
Spoiler for kode html:
<form action="#">
<fieldset id="user-details">
<label for="name">Date</label>
<input type="text" id="popupDatepicker" />
<label for="email">Material Name/Type</label>
<input type="email" name="email" value="" />
<label for="phone">Type Of Transaction</label>
<select name="typeoftransaction" class="select1">
<option value="" disabled="disabled" selected="selected">Please Select Option</option>
<option value="1">One</option>
<option value="2">Two</option>
</select>
<label for="phone">Destination</label>
<select name="destination" class="select1">
<option value="" disabled="disabled" selected="selected">Please Select Option</option>
<option value="1">One</option>
<option value="2">Two</option>
</select>
<label for="website">Qty</label>
<input type="url" name="website" value="" />
<input type="submit" value="Submit Message" name="submit" class="submit" />
</fieldset>
</form>
<fieldset id="user-details">
<label for="name">Date</label>
<input type="text" id="popupDatepicker" />
<label for="email">Material Name/Type</label>
<input type="email" name="email" value="" />
<label for="phone">Type Of Transaction</label>
<select name="typeoftransaction" class="select1">
<option value="" disabled="disabled" selected="selected">Please Select Option</option>
<option value="1">One</option>
<option value="2">Two</option>
</select>
<label for="phone">Destination</label>
<select name="destination" class="select1">
<option value="" disabled="disabled" selected="selected">Please Select Option</option>
<option value="1">One</option>
<option value="2">Two</option>
</select>
<label for="website">Qty</label>
<input type="url" name="website" value="" />
<input type="submit" value="Submit Message" name="submit" class="submit" />
</fieldset>
</form>
Spoiler for saya mau tambahkan kolom seperti disebelah kiri:
makasih
0
1.1K
Kutip
6
Balasan
Tulis komentar menarik atau mention replykgpt untuk ngobrol seru
Urutan
Terbaru
Terlama
Tulis komentar menarik atau mention replykgpt untuk ngobrol seru
Komunitas Pilihan