Answers for "change the height of select option"

0

html select height

@media screen and (-webkit-min-device-pixel-ratio:0) {  /*safari and chrome*/
    select {
        height:30px;
        line-height:30px;
        background:#f4f4f4;
    } 
}
select::-moz-focus-inner { /*Remove button padding in Firefox */ 
    border: 0;
    padding: 0;
}
@-moz-document url-prefix() { /* targets Firefox only */
    select {
        padding: 15px 0!important;
    }
}        
@media screen\0 { /* IE Hacks: targets IE 8, 9 and 10 */        
    select {
        height:30px;
        line-height:30px;
    }     
}
Posted by: Guest on March-21-2021
0

change the height of select option

NO. It's not possible to change height of a select dropdown because that property is browser specific.
Posted by: Guest on August-25-2021

Code answers related to "change the height of select option"

Browse Popular Code Answers by Language