ghurty Posted June 28, 2009 Share Posted June 28, 2009 How can I make an input box have a color rather then being plain? Thanks Link to comment https://forums.phpfreaks.com/topic/164002-how-can-i-make-an-input-box-have-a-color-rather-then-being-plain/ Share on other sites More sharing options...
dzelenika Posted June 28, 2009 Share Posted June 28, 2009 use CSS to format them <input type="text" style="background-color:#FF0000" name="textfield" /> This is not the best practice but works. Link to comment https://forums.phpfreaks.com/topic/164002-how-can-i-make-an-input-box-have-a-color-rather-then-being-plain/#findComment-865144 Share on other sites More sharing options...
ghurty Posted June 28, 2009 Author Share Posted June 28, 2009 thank you, how would i have the border be a color? Link to comment https://forums.phpfreaks.com/topic/164002-how-can-i-make-an-input-box-have-a-color-rather-then-being-plain/#findComment-865147 Share on other sites More sharing options...
dzelenika Posted June 28, 2009 Share Posted June 28, 2009 <input type="text" style="background-color:#FF0000; border-color:#999999; border-style:solid" name="textfield" /> of course you can change border width by setting border-width: 3px or any number instead of 3px ... Link to comment https://forums.phpfreaks.com/topic/164002-how-can-i-make-an-input-box-have-a-color-rather-then-being-plain/#findComment-865150 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.