How to add style (padding, font-style) to select options | Community
Skip to main content
New Participant
August 21, 2020
Question

How to add style (padding, font-style) to select options

  • August 21, 2020
  • 1 reply
  • 6609 views

Hi I am trying to change select field option background color(blue to grey) on hover and want to change font style and padding to

select option, could you please help me on this

.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

SanfordWhiteman
New Participant
August 21, 2020

As I answered elsewhere, individual <option> elements don't have a :hover state. You won't be able to do that part.

 

Padding is exactly like it sounds:

 

.mktoForm select option { padding: 10px; }