Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML HTML Forms Choosing Options Select Menus

Aakash Srivastav
Aakash Srivastav
Full Stack JavaScript Techdegree Student 11,626 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
220,501 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.