CSS and form input:text not showing input text -
i trying make input form have background image, apply css class input, default value not show (it work if there no css class applied). here html:
<form> <input type="text" class="emailinput" value="enter email address"> <input type="submit" class="emailbtn" value=""> </form>
and here css associated it:
input.emailinput { color:#000; background:url('images/emailbackground.png') no-repeat; display:block; width:313px; height:31px; text-indent:-5000px; position:relative; top:0px; left:-2px; border:none; } input.emailbtn { background:url('images/emailbtn.png') no-repeat; display:block; width:55px; height:38px; text-indent:-5000px; position:relative; top:-32px; left:323px; border:none; }
i @ total loss. appreciated.
perhaps text-indent:-5000px;
causing text positioned out of visible area.
Comments
Post a Comment