Skip to content Skip to sidebar Skip to footer

Height Of The Select Option Box

I have a form in which one input field is select and it has few option.I am not able to increase the height of the option box and background color.presently it has white colour as

Solution 1:

You can use this to increase height:

.select2 select{
  height: 50px;
background: transparent;
}

Add more properties here to style the box. Also correct way to use before and after is :

.select2::after {
....
}

Codepen

Solution 2:

Try giving style to select tag, this might works!

select{
    width: 50%;
    padding: 12px20px;
    margin: 8px0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 20px;
}

Solution 3:

Try this

.select2 {
  width: 100%;
  overflow: hidden;
  font-size: 20px;
  padding: 4px0;
  margin: 4px0;

}

select{
  height:30px;
  border-bottom: 2px solid black;
  background-color: transparent;
}

Post a Comment for "Height Of The Select Option Box"