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 trialjiwan gurung
4,248 Pointsis primary and col 2 different class?can you use more than one class in an element?
can you have more than 1 class in an element and are they separted by space?
3 Answers
Recep Onalan
15,541 PointsYes you can use unlimited classes in one element. Primary is a color class in bootstrap which color is blue. col2 is about the size of its largeness in the 12 col grid system
Emmanuel Molina
9,268 PointsYou can have multiple class in an element if you use a space between them.
For example class="one two three four five".
If you use "-" instead you create one class with a long name.
For example class="this-is-only-one-class"
Adam Maley
5,946 PointsWas this mentioned in previous videos? I feel like I did not learn this. I keep typing ".primary col { }" and ".secondary col" to select the separate columns then floating them separately to the left and the right.