azraelGG Posted October 31, 2012 Share Posted October 31, 2012 how can i color input fields in chrome - i did one code it works for ffx but chrome wont do it #login input{ width: 230px; color:white; background:green; margin-bottom: 10px; padding:4px; } Quote Link to comment https://forums.phpfreaks.com/topic/270134-chrome-input-cant-color-them/ Share on other sites More sharing options...
kicken Posted October 31, 2012 Share Posted October 31, 2012 http://jsfiddle.net/6JC3E/ Works just fine in chrome. Quote Link to comment https://forums.phpfreaks.com/topic/270134-chrome-input-cant-color-them/#findComment-1389131 Share on other sites More sharing options...
azraelGG Posted October 31, 2012 Author Share Posted October 31, 2012 strange it works on that site too, but on my page it only color my submit button, i set !important tag at the end. i can see it when i press inspect element but same thing only hide color from button not input fields if someone has time to take a look - http://www.zipupload.org/38f its php use xampp to open and htdocs Quote Link to comment https://forums.phpfreaks.com/topic/270134-chrome-input-cant-color-them/#findComment-1389133 Share on other sites More sharing options...
azraelGG Posted October 31, 2012 Author Share Posted October 31, 2012 found the problem - autocomplete="off" but i would like to keep that autocompete on but chrome just set it on yellow by default any easy solutions? Quote Link to comment https://forums.phpfreaks.com/topic/270134-chrome-input-cant-color-them/#findComment-1389134 Share on other sites More sharing options...
kicken Posted October 31, 2012 Share Posted October 31, 2012 Works fine for me. Looks like: Disable all your browser addons, maybe something is overriding it for you. Quote Link to comment https://forums.phpfreaks.com/topic/270134-chrome-input-cant-color-them/#findComment-1389135 Share on other sites More sharing options...
azraelGG Posted October 31, 2012 Author Share Posted October 31, 2012 strange... i dont have any extensions installed (btw im on linux ubuntu mybe that can be problem) its fresh installation few days ago Quote Link to comment https://forums.phpfreaks.com/topic/270134-chrome-input-cant-color-them/#findComment-1389136 Share on other sites More sharing options...
kicken Posted October 31, 2012 Share Posted October 31, 2012 The yellow background is something that the google toolbar will do in other browsers like firefox. In chrome itself (on windows at least) it does not do the yellow background thing unless you start typing then hover over an auto-complete entry in the popup of options. Linux may be different, I don't know. In any case, it's a problem with your setup, and not anything you're going to fix via code really (aside from disabling autocomplete like you did). Quote Link to comment https://forums.phpfreaks.com/topic/270134-chrome-input-cant-color-them/#findComment-1389137 Share on other sites More sharing options...
azraelGG Posted November 1, 2012 Author Share Posted November 1, 2012 oh... it works when i erase but if field has remembered values then it colors them in yellow when its erased then its back to normal with background Quote Link to comment https://forums.phpfreaks.com/topic/270134-chrome-input-cant-color-them/#findComment-1389142 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.