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 CSS Layout Techniques Positioning Schemes Absolute Positioning

Absolute positioning question about mark-up

I'm not understanding how a .col class can be targeted in css when there is no mark up for it in the html doc. This is on the Absolute Positioning module in CSS Layout Techniques.

5 Answers

Hi Rene,

I believe there are three divs with the class col.

Jeff

<div class="extra-content col">

<div class="primary-content col">

<div class="secondary-content col">

It is actually but with assigning multiple classes maybe it wasn't as noticeable.

.col Class Treehouse CSS

Thanks guys, I think I follow you. I was being a bit literal in the sense that I was looking for the full name of class: So am I right in assuming that "col" is a short-hand way of referring to a group? It makes sense. Instead of entering: .extra-content col, .primary-content col, .secondary-content col { something: something; } You just use col as short-hand for all three?

BTW Both answers did a good job of explaining.

Multiple classes. Got it. Thanks for the link.