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 trialRoderick Kar
8,456 Pointsdreamweaver does not allow making adjustment to .lead
dreamweaver cc says margin-bottom does not apply to your selection (.lead in this case) because it has been overridden by the rule .jumbotron p
2 Answers
geoffrey
28,736 PointsYes, as displayed by dreamweaver, the rule you apply is being overriden by another one which targets the same HTML element and which probably have more specificity.
If the lead class is applied to the paragraph, try to target this one this way:
p.lead{
}
Also, when playing with CSS, keep in mind that css specificity has Its matter. An element can be targeted in differents ways, but It's all the time the CSS selector with the more specificity that will be applied on the targeted element, whatever Its position in the order of the css rules.
Here is a quick illustration of css specificity: here.
For more info, check google :)
Jaco Burger
20,807 PointsI don't want to be that guy, but don't use Dreamweaver :) Stick with Sublime, Espresso or Netbeans.
Roderick Kar
8,456 PointsRoderick Kar
8,456 PointsThanks!