Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

107
Views
Get default checkbox/radio background colors across browsers

https://jsfiddle.net/razdo3eq/

Chrome on Windows:
enter image description here
rgb(0,92,200) and rgb(0,117,255)

Firefox on Windows:
enter image description here
rgb(0,96,223) for both

Is there any way to get these colors dynamically, either per JavaScript or via CSS descriptions like -webkit-link or -moz-hyperlinkText?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

A radio button is a native element specific to each OS/browser. There is no way to change its color/style

A quick fix would be to overlay the radio button input style using :after, however it's probably a better practice to create your own custom toolkit.

input[type='radio'] {
    -webkit-appearance:none;
    width:20px;
    height:20px;
    border:1px solid darkgray;
    border-radius:50%;
    outline:none;
}
input[type='radio']:before {
    content:'';
    display:block;
    width:60%;
    height:60%;
    margin: 20% auto;    
    border-radius:50%;    
}
input[type='radio']:checked:before {
    background:green;
}
<input type='radio' name='a' checked/>
<input type='radio' name='a'/>

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!