Hi Joe,
Thanks! I’m using Thesis 2.0 so I believe it supports html5 as it is fairly new. I’ll double check though. (I’m fairly confident it is.) Thank you for the updates codepen CSS… I tried it and it seemed like it was going to work but now it does this instead:
https://prntscr.com/9oszqd
I want the word “search” in the box as a placeholder and not as a submit button.
Here is my total code:
#.bop-nav-search {
position: absolute;
right: 20px;
top: 20px;
}
.bop-nav-search input[name="s"]{
background-color: transparent;
background: url("https://howehealth.com/dev1/wp-content/uploads/2016/01/search.gif");
background-position: 5px center;
background-repeat: no-repeat;
background-size: 20px 20px;
border: none;
cursor: pointer;
height: 35px;
margin: 1px 0;
padding: 0 0 0 34px;
position: relative;
-webkit-transition: width 200ms ease, background 200ms ease, border 200ms ease;
transition: width 200ms ease, background 200ms ease, border 200ms ease;
width: 0;
}
.bop-nav-search input[name="s"]:hover {
background:url("https://howehealth.com/dev1/wp-content/uploads/2016/01/search_white.gif");
background-position: 5px center;
background-repeat: no-repeat;
}
.bop-nav-search input[name="s"]:focus {
background-color: #d4c19d;
border: 1px #836631(0,0,0,1);
cursor: text;
outline: 0;
width: 150px;
height: 20px;
}
.bop-nav-search input[type="search"] {
-webkit-appearance: textfield;
}
/*Hide for non-screen-readers*/
.bop-nav-search .screen-reader-text {
position: absolute !important;
clip: rect(1px 1px 1px 1px);
/* IE6, IE7 */
clip: rect(1px, 1px, 1px, 1px);
}
.bop-nav-search .search-submit {
display: none;
}