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
Laura Cressman
12,548 PointsForm Element Positions
How do I change the position of form elements in CSS? For instance, what if I want to add a username and password input form and have it on the top right corner of the page? Also, is it possible to adjust spacing between two text input boxes?
3 Answers
Kevin Korte
28,149 PointsIt's going to depend on your structure, but to put a login form in the top right, you'll likely have some sort of float: right; on the form element. A lot depends if it's going to be in a menu bar, or it's own element, etc.
And yes, you can adjust margin and padding on input elements. Padding will make the input element larger, and margin will create the space between it and the next closest item.
Laura Cressman
12,548 PointsThank you Kevin!!