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

I am struggling to align the labels for my <options> in CSS, can someone help me please?

Here is the CSS Code;

*, *:before, *:after { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; }

body { font-family: 'Open Sans', sans-serif; color: #999; }

form { max-width: 100%; margin: 10px auto; padding: 0px 20px; background: #f4f7f8; border-radius: 8px; }

h1 { color: #999; margin: 0 0 30px 0; text-align: center; font-size: 3.75em; list-style-type: none; }

h2 { margin: 0 0 30px 0; text-align: center; font-weight: normal; font-size: 2em; }

input[type="text"], input[type="password"], input[type="date"], input[type="datetime"], input[type="email"], input[type="number"], input[type="search"], input[type="tel"], input[type="time"], input[type="url"], textarea, select { background: rgba(255,255,255,0.1); border: none; font-size: 16px; height: auto; margin: 0% 35% 0% 35%; outline: 0; padding: 15px; width: 30%; background-color: #e8eeef; color: #8a97a0; box-shadow: 0 1px 0 rgba(0,0,0,0.03) inset; margin-bottom: 30px; }

input[type="radio"], input[type="checkbox"] { margin: 0% 0% 0% 35%; text-align: center; }

select { padding: 6px; height: 32px; border-radius: 2px; }

button { margin: 0% 35% 0% 35%; padding: 19px 39px 18px 39px; color: #FFF; background-color: #00688B; font-size: 18px; text-align: center; font-style: normal; border-radius: 5px; width: 30%; border: 1px solid #00688B; border-width: 1px 1px 3px; box-shadow: 0 -1px 0 rgba(255,255,255,0.1) inset; margin-bottom: 10px; }

fieldset { margin-bottom: 30px; border: none; }

legend { font-size: 0.75em; margin-bottom: 10px; }

label { display: block; margin-bottom: 8px; }

label.light { font-weight: 300; display: inline; }

@media screen and (min-width: 480px) {

form { max-width: 480px; }

}

/* Selected Nav links */

ul { text-align: center; font-size: 0.75em; }

a { text-decoration: none; }

nav a:hover { color:#ff0000; }

.Newsletter { margin: 0% 35% 0% 35%; }