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 trialSiddharth Pathak
Front End Web Development Techdegree Student 143 PointsI cant understand this font property :
this font property is very hard for me : font: bold 400%/70px serif;
1 Answer
Tadjiev Codes
9,626 PointsHey, What I think here that the font-size has been divided from 400%/70px.
I guess you know what bold does, it makes the text bold and serif sets the font-family.
For many CSS properties you could just specify one main keyword as font: and mention all the values in one row.
I like to specifiy each separately like
font-family: sans-serif;
font-weight: 400;
font-size: 70px;
Although, I believe it would be better to use the calc() method to implement any calculations.
/* property: calc(expression) */
width: calc(100% - 80px);
The calc() function takes a single expression as its parameter, with the expression's result used as the value.