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? 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)" /> 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); } 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
Archived
This topic is now archived and is closed to further replies.