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 trialbarnabasadedoyin
1,501 Pointsassigning names
i can see we are deigning for mobile first but we are not specifying any name to make us know the style we are applying like this /* mobile first */ does it matter?
2 Answers
geoffrey
28,736 PointsYou organize your code the way you want, if you prefere to comment your CSS to specify the styles are for mobiles, feel free to do.
Some people organize their css differently, they create several sheets, for example, another css for the responsive styles and import them or call all of them in the html.
In the exercise given by nick I guess he specifies nothing as he know he is building the website on a mobile first approach and thus knows the styles he is applying are for mobiles.
Maybe after, (Don't remember really the course), he adds some media queries to target larger devices and there, he comments to specify which devices are targeted, but at the same time, media queries speak for themselves.
I mean if you see your mobile first css at the top and then at the bottom
@media screen and (min-width:640px){
/*your css styles here*/
}
You know directly the targeted devices, but if you want to comment, at the top and add a comment, feel free...
barnabasadedoyin
1,501 PointsOk Geofrrey, cleared! Thank you :)