Paul-D Posted July 4, 2020 Share Posted July 4, 2020 Hi. I had this website section running for years. Recently chrome has changed it's defaults giving my text inputs a harsh black border. IE firefox etc do not do this. I have had a play with the and cant get grey borders with rounded edges. desmond-otoole.co.uk/bank <div><br><br> User name:<br></div> <div><span style="border-radius: 10px;border: 2px solid grey;"><input type="input" name="<?=$UserName?>" size="25" maxlength="20" value="Desmond"></span> <span style="color:red"><? echo $_SESSION["Error_1"]?></span></div> Any help on this. It is annoying when browsers mess around with defaults. Quote Link to comment Share on other sites More sharing options...
kicken Posted July 4, 2020 Share Posted July 4, 2020 Apply your styles to the <input> tag rather than a <span> tag. Quote Link to comment Share on other sites More sharing options...
Paul-D Posted July 5, 2020 Author Share Posted July 5, 2020 This is still not working. I have put everything in a style sheet where it should be but this isn't working either input[type="input"], input[type="password"], input[type="text"], textarea { background-color:#ffffff; font:Bold; color:#000000; border-width: thin; border-radius: 20px; border-color:green; } input[type="input"]:focus, input[type="password"]:focus, input[type="text"]:focus, textarea:focus { background-color:#f4cd81; font:Bold; color:Blue; border-width: thick; border-radius: 20px; border-color:green; } Quote Link to comment Share on other sites More sharing options...
maxxd Posted July 5, 2020 Share Posted July 5, 2020 Are you actually using a font named Bold? The rest of the CSS should be working, so make sure it's being included into the HTML - can the calling page actually find it? Add body{ background-color: red; } to your CSS sheet. Quote Link to comment Share on other sites More sharing options...
jodunno Posted July 6, 2020 Share Posted July 6, 2020 so try to change the default style: border: none; outline: none; then specify a solid 2px gray border. input[type="password"], input[type="text"], textarea { background-color:#ffffff; font-weight:bold; color:#000000; border: none; outline: none; border: solid 2px gray; border-width: thin; border-radius: 20px; border-color:green; } input[type="input"]:focus, input[type="password"]:focus, input[type="text"]:focus, textarea:focus { background-color:#f4cd81; font-weight:bold; color:Blue; border-width: thick; border-radius: 20px; border-color:green; } meantime, input type="input"? please review input types. let us know how it goes... Quote Link to comment Share on other sites More sharing options...
Paul-D Posted July 7, 2020 Author Share Posted July 7, 2020 This is driving me nuts now. I have viewed this web page in Chrome 83, IE8, FF78 and Opera (unknown) I get different view in chrome. The browsers don't follow the style sheet settings. I want a very thin barley visible border maybe light grey even. Nice if the input boxes have rounded sides. Seems they only become rounded when they have the focus. Again not following the style sheet settings. input[type="input"], input[type="password"], input[type="text"], textarea { background-color:#ffffff; font:Bold; color:#000000; border-width: thin; border-radius: 20px; border-color:green; } input[type="input"]:focus, input[type="password"]:focus, input[type="text"]:focus, textarea:focus { background-color:#f4cd81; font:Bold; color:Blue; border-width: thick; border-radius: 20px; border-color:green; } Quote Link to comment Share on other sites More sharing options...
kicken Posted July 8, 2020 Share Posted July 8, 2020 The page displays thin rounded borders for me in chrome and firefox. Make sure your not having cache issues. Quote Link to comment 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.