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 Positioning Schemes Challenge

Adrian Pineda
Adrian 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,913 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