Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS Treehouse Club: CSS My First Web Page Introduction to My First Web Page

Joel Brown
Joel Brown
4,590 Points

Headline 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
Uziel Cohen
4,318 Points

Hi 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.