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

CSS

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

Floating "labels"

I want to display the label of an input inside its input, so that when I click the input, the label will go above the input . I searched around but found hard to be understood as new elements has been used to achieve this like "required" , "valid" etc. I want to know the easiest way to achieve this. Help me. Thanks

1 Answer

Steven Parker
Steven Parker
229,644 Points

This is perhaps not an "easy" task, but I found a few resources that might be helpful:

Plus there's the example you asked about in your other question.

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

Yeah..and I got that almost 80 percent and rest I need your help. I have posted some more question in that previous post about the "element" that I didn't understand in the pen. Thanks Steven ?