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

Margin not working with checkbox element

If you take a look here: http://jsfiddle.net/LvhCh/37/

You will notice that the margin CSS doesn't take any effect to the checkbox's position. Any idea why this is happening?

Thanks

3 Answers

It is working fine for me: http://jsfiddle.net/LvhCh/36/

Sorry I attached the wrong fiddle, I have edited my post and added the new one :)

There's a rule for 'input[type=checkbox]' showing a 'margin: 4px 0 0;' if you inspect the element, it's coming from bootstrap (line 5), I'm not sure if this is coming from jsfiddle or your own styles, it has probably got more specificity than your .floa-checkbox class.

i agree with Stephen O'Connor, on fiddle you can go to the "External Resources" and turn off those bootstrap js files and your styling works.