I'm currently working on a registration form that requires users to input their username, first name, last name, and more.
Experimenting with CSS, I wanted to enhance the textboxes by adding icons to them. Unfortunately, my attempts have not been successful so far.
Here is the HTML code snippet for one of the textboxes:
<input id ="regtxt" type="text" placeholder="Username" name = "user" maxlength="9"/>
And here is the corresponding CSS code:
#regtxt{
background-image:url('images/usericon.png');
left:no-repeat;
}
Can anyone spot what I might be doing incorrectly?
Thanks in advance!