TheFilmGod Posted November 4, 2007 Share Posted November 4, 2007 I have googled for over an hour and I'm still clueless on how to do this. I want to change the background of input text field WITH AN IMAGE! Any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/75977-changing-background-of-input-text/ Share on other sites More sharing options...
~n[EO]n~ Posted November 4, 2007 Share Posted November 4, 2007 <input name="textfield" type="text" size="30" style="background:url(images/bg.jpg)" /> Quote Link to comment https://forums.phpfreaks.com/topic/75977-changing-background-of-input-text/#findComment-384633 Share on other sites More sharing options...
jcombs_31 Posted November 5, 2007 Share Posted November 5, 2007 The above work, but you would have to declare that inline style of every input. A better alternative would be to use a stylesheet if you plan to make all inputs the same. input { background: url(/path/to/image); } Quote Link to comment https://forums.phpfreaks.com/topic/75977-changing-background-of-input-text/#findComment-385174 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.