06-02-2015 Saat: 14:16
WordS demin soruyordu arama kutusuna nasıl şekil verirsiniz. Normal bir html koduna göre biraz karışık gözükebilir ancak basit bir kod kullanarak yapabilirsiniz.
Kodları Buradan önizleyin..
Kod:
<div id="aramaform">
<form action=""method="get">
<input id="aramakutusu" type="text" name="" value="" />
<button class="aramabuton" type="submit">ara</button>
<style>
#aramakutusu {
background: #999999; /* Old browsers */
background: -moz-linear-gradient(top, #999999 0%, #d6d6d6 50%, #c9c9c9 51%, #e5e5e5 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#999999), color-stop(50%,#d6d6d6), color-stop(51%,#c9c9c9), color-stop(100%,#e5e5e5)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #999999 0%,#d6d6d6 50%,#c9c9c9 51%,#e5e5e5 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #999999 0%,#d6d6d6 50%,#c9c9c9 51%,#e5e5e5 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #999999 0%,#d6d6d6 50%,#c9c9c9 51%,#e5e5e5 100%); /* IE10+ */
background: linear-gradient(to bottom, #999999 0%,#d6d6d6 50%,#c9c9c9 51%,#e5e5e5 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#999999', endColorstr='#e5e5e5',GradientType=0 ); /* IE6-9 */
border: 1px solid;
text-align: center;
height: 25px;
border-radius: 12px 1px;
font-size: 15px;
font-family: sans-serif;
}
#aramakutusu:focus {
border: 1px dashed black;
}
.aramabuton {
height: 25px;
border: 1px solid black;
border-radius: 1px 12px;
background: #999999; /* Old browsers */
background: -moz-linear-gradient(top, #999999 0%, #d6d6d6 50%, #c9c9c9 51%, #e5e5e5 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#999999), color-stop(50%,#d6d6d6), color-stop(51%,#c9c9c9), color-stop(100%,#e5e5e5)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #999999 0%,#d6d6d6 50%,#c9c9c9 51%,#e5e5e5 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #999999 0%,#d6d6d6 50%,#c9c9c9 51%,#e5e5e5 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #999999 0%,#d6d6d6 50%,#c9c9c9 51%,#e5e5e5 100%); /* IE10+ */
background: linear-gradient(to bottom, #999999 0%,#d6d6d6 50%,#c9c9c9 51%,#e5e5e5 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#999999', endColorstr='#e5e5e5',GradientType=0 ); /* IE6-9 */
</style>
Kod:
http://www.webkodu.com/kod-onizleme-sayfasi.html