Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS CSS Layout Techniques Positioning Schemes Positioning Schemes Challenge

Aaron Pineda
Aaron Pineda
13,778 Points

Problem with CSS

I'm working on this problem and can't seem to figure out what I am doing wrong. Next, set the primary column's left offset to 0, and the secondary column's right offset to 0. Bummer! Make sure you're giving primary the correct left offset value. PreviewRecheck work index.html style.css

.col { position: absolute; } .primary-col { left: 0; } .secondary-col { right: 0; }

3 Answers

Michael Hulet
Michael Hulet
47,843 Points

You're not supposed to include the -col after .primary and .secondary. This code passes the entire challenge:

.main-header{
  position: relative;
}
.main-logo, .main-nav{
  position: absolute;
}
.main-logo{
  top: 25px;
  left: 25px;
}
.main-nav{
  bottom: 30px;
  right: 25px;
}
.content-row{
  position: relative;
}
.col{
  position: absolute;
  top: 0;
}
.primary{
  left: 0;
}
.secondary{
  right: 0;
}
Bobby Stanton
Bobby Stanton
5,776 Points

Hi, Michael! Thank you! Aaron, had the same issue, and thanks to Michael, it was an easy fix. Bobby