Jump to content

Recommended Posts

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>&nbsp;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>&nbsp;<span style="color:red"><? echo $_SESSION["Error_1"]?></span></div>

 

Any help on this. It is annoying when browsers mess around with defaults.

 

Link to comment
https://forums.phpfreaks.com/topic/311031-thin-grey-text-input-border/
Share on other sites

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;
}

 

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...

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;
}

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.