How can I create an input box with a specific background?
I have tried the following code but it's not displaying properly. What is the correct way to achieve this?
In addition, I need to create variations of this button as described below:
I want to add a cross on the dark area of the button using a
<span>
tag with a custom class. Is this a good approach?Another variation requires a paper clip icon after the curve on the left side. Would using a
<span>
tag with a class be suitable for this too?
HTML:
<div class="innerTo">
<form action="#" method="get">
<label for="recipients">TO: </label>
<input type="search" name="recipients" id="recipients" placeholder="Recipients Names">
</form>
</div>
CSS:
.innerBar .innerTo{
width:200px;
padding:5px 0 0 15px;
display:block;
float:left;
}
.innerBar .innerTo label{
margin:0 15px 0 0;
font-size:14px;
font-weight:bold;
color:#666666;
}
.innerBar .innerTo input[type=search] {
color: red;
}
.innerBar .recipients{
background-image:url('../images/searchBGpng.png') no-repeat;
width:192px;
height:27px;
}