I notice that in some browsers, on some OSs, a field in a form gets a colored border. Is there any way to use CSS3, or possibly a JavaScript, to change the border color (as one can change the text highlight color on a given HTML page using CSS3)?

Recommended Answers

I think you are referring to a border around text boxes while using certain browsers? If so, apply this CSS:

input:focus {outline:none;}

Jump to Post

All 2 Replies

I think you are referring to a border around text boxes while using certain browsers? If so, apply this CSS:

input:focus {outline:none;}

ok you want the border to change and the input to have a diffrent color or the text to have a diffrent color?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.