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

mohammed abdi abdulahi warsame
mohammed abdi abdulahi warsame
4,926 Points

font-family

when i want to write the font family one do i have to arrange it as font-weight then font-size then line-hight then font-family or i have the right to chosse?

2 Answers

Sergey Podgornyy
Sergey Podgornyy
20,660 Points

You have the right to choose order by yourself ;)

You can always try your code. It's the best practice.

More about font-family you can read here

I believe you have the option of choosing the order you list each property i.e. font-family then font-weight or vice versa unless you are using the "font:" property which specifies all the properties in one declaration:

p {
         font: italic bold 15px arial, sans-serif;
}