I want to add a background image into the submit button. I've added a picture but when i do no-repeat background image disappears! What should I do to avoid losing image ?
HTML
<div class="comtextarea">
<textarea name="comment" class="comment" maxlength="200" id="" rows="2" cols="50"></textarea>
<input type="submit" value="" class="combut"/>
</div>
CSS
.comtextarea {
float:left;
width:550px;
height:auto;
}
.comment {
width:550px;
resize:none;
outline:none;
border:1px solid #abc7d0;
}
.combut {
float:right;
margin-top:-36px;
z-inde:3;
position:relative;
outline:none;
width:30px;
height:30px;
background-image:url(https://scontent-a-fra.xx.fbcdn.net/hphotos-frc1/t1.0-9/10291103_828742610487379_816788942451910142_n.jpg) no-repeat;
padding:0px 0 4px 0; border:none;
text-indent:-10000em;
}
This is DEMO page
background-imagewill only hold the image url. You can either include all background properties intobackgroundor keep your current setting and addbackground-repeat: no-repeat.