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 Organizing Forms The Label Element

Aakash Srivastav
Aakash Srivastav
Full Stack JavaScript Techdegree Student 11,626 Points

<label> element

How will I make the label a block level elemenet as shown in the video? Should I have to make it display:block by selecting it in the CSS , or any specific method is used for it? I have done the normal CSS projects. But when it comes to "styling forms" , I became blanked. I need your help. My question is "Where are some common traits used in styling form element ?". This will help me in having a good start. Thanks

2 Answers

Steven Parker
Steven Parker
221,310 Points

There are some form styling recommendations on the MDN page Styling HTML forms and on w3school's CSS Forms.

And a quick search will turn up lots of sites with examples, such as this one with 10 CSS HTML Form Designs.