Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML HTML Forms Choosing Options Select Menus

Aakash Srivastav
seal-mask
.a{fill-rule:evenodd;}techdegree
Aakash Srivastav
Full Stack JavaScript Techdegree Student 11,638 Points

<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
231,248 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.