Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove Default round border of <select> element in Mac OS Browser:Chrome

in 'select' element i haven't added border property in CSS of it , and also i have added following CSS in it

    .select
     {
      -webkit-appearance: none;
      -webkit-border-radius: 0px;
     }

though its showing me round border in Chrome (Mac OS),why it is so ,how can i get over it ?

like image 439
Sona Avatar asked Jan 22 '14 12:01

Sona


People also ask

How do you unset a border radius?

-webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; This will override any border radius css.


2 Answers

You can update css appearance property.

.select{ 
   -webkit-appearance: none;
   -moz-appearance:    none;
   appearance:         none;   
   -webkit-border-radius: 0;  /* Safari 3-4, iOS 1-3.2, Android 1.6- */    
   -moz-border-radius: 0;  /* Firefox 1-3.6 */     
   border-radius: 0;  /* Opera 10.5, IE 9, Safari 5, Chrome, Firefox 4, iOS 4, Android 2.1+ */
}
like image 86
Pranav C Balan Avatar answered Oct 15 '22 18:10

Pranav C Balan


Though its a old question. I tried by keeping arrow on the right side.

select {
    color: #fff;
    background: #17406B;
    border: solid 7px #17406B;
    outline: #17406B solid thick;
    outline-offset: -5px;
}
like image 31
Priyank Dey Avatar answered Oct 15 '22 18:10

Priyank Dey