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 trialnicholas maddren
12,793 PointsMargin 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
Stephen Goeddel
11,239 PointsIt is working fine for me: http://jsfiddle.net/LvhCh/36/
Stephen O'Connor
22,291 PointsThere'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.
robert bryan
7,255 Pointsi 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.
nicholas maddren
12,793 Pointsnicholas maddren
12,793 PointsSorry I attached the wrong fiddle, I have edited my post and added the new one :)