HTML HTML Forms Choosing Options Select Menus

<select> element

How to give padding to "default" option of select menu. The default option is on the very left of select menu and I want to give it some padding on it left. I tried everything like padding-left , margin-left but it didn't work . I inspected "chrome dev tools" but got nothing. What's the problem here . Please help.

1 Answer

Steven Parker
Steven Parker
159,146 Points

You may have the wrong selector. Are you targeting the option or the select?

To facilitate a more specific answer, please show your code. Or better yet, make a snapshot of your workspace and post the link to it here.