Blog'umda css destekli top menu kullanıyorum. İlginçtir arama yaptığımda blog içinde arama yapmıyor. Nedeni ne olabilir ? Aşağıda kodları veriyorum.
<li id='search'>
<form action='/search/label' id='search_BH' method='get'>
<input id='search_text' name='search_text' placeholder='Ne arıyorsun ?' type='text'/>
<input id='search_button' name='search_button' type='button'/>
</form>
</li>CSS Kodu
@import url(https://fonts.googleapis.com/css?family=Montserrat);
* {
margin: 0px auto;
padding: 0;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
}
.nav {
background: #000;
height: 60px;
display: inline-block;
margin-left: 350px;
position: fixed;
z-index: 9999;
}
.nav li {
float: left;
list-style-type: none;
position: relative;
}
.nav li a {
font-size: 16px;
background: #000;
color: white;
display: block;
line-height: 60px;
padding: 0 26px;
text-decoration: none;
border-left: 0px solid #2e2e2e;
font-family: Montserrat, sans-serif;
text-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
}
.nav li a:hover {
color: white;
background-color: #323131;
}
#settings a {
padding: 18px;
height: 24px;
font-size: 10px;
line-height: 24px;
}
#search {
width: 357px;
margin: 4px;
}
#search_text{
width: 297px;
padding: 15px 0 15px 20px;
font-size: 16px;
font-family: Montserrat, sans-serif;
border: 1px solid: #fff;
height: 52px;
margin-right: 0;
color: black;
outline: none;
background: #000;
float: left;
box-sizing: border-box;
transition: all 0.15s;
}
::-webkit-input-placeholder { /* WebKit browsers */
color: white;
}
:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
color: white;
}
::-moz-placeholder { /* Mozilla Firefox 19+ */
color: white;
}
:-ms-input-placeholder { /* Internet Explorer 10+ */
color: white;
}
#search_text:focus {
background: #FFF;
}
#search_button {
border: 0 none;
background: #000 url(https://lh3.googleusercontent.com/-Wpl0Zi-z2rs/VmiLFi5RUII/AAAAAAAAC3U/NVi37pdUrFs/h120/search.png) center no-repeat;
width: 60px;
float: left;
padding: 0;
text-align: center;
height: 52px;
cursor: pointer;
}
#options a{
border-left: 0 none;
}
#options>a {
background-image: url(triangle.png);
background-position: 85% center;
background-repeat: no-repeat;
padding-right: 42px;
}
.subnav {
visibility: hidden;
position: absolute;
top: 110%;
right: 0;
width: 200px;
height: auto;
opacity: 0;
transition: all 0.1s;
background: transparent;
}
.subnav li {
float: none;
}
.subnav li a {
border-bottom: 0px solid #DEDEDE;
}
#options:hover .subnav {
visibility: visible;
top: 100%;
opacity: 1;
}