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 trialJoel Brown
4,590 PointsHeadline Question
Hey there, so i noticed when looking in the style.css that h1, h2, and h3 all have font sizes. How come h4 doesnt? And what's a margin-top and font-weight?
1 Answer
Uziel Cohen
4,318 PointsHi there Joel.
In css you can define the size of the h# family as needed. but the h# has a default sizes to each if it's not defined in the css file. as h1 is the largest and h6 is the smallest.
Margin-top is a value that set a space between the outer border of an element and what ever is above that element. it could be the top edge of the page or another element. whatever...
font-weight is a value that defines the thickness of a font. When you look-up fonts in, say... google fonts, you'll see in the font's charcharistics what values you will able to assign to it. Some of the fonts presents with no weight variations at all, some have several. And you can define it using number values or keywords.
Example: Open Sans: Light 300.