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 trialJoseph Davis
2,971 PointsMy resources and archives section didn't stack on top of each-other.
My resources and archives section didn't stack on top of each-other and the bit of text showing "Verde Moderna by Dave Shea" has a background of sandy white, do you have any idea what I did wrong? Here is the CSS that affects the stacking archives and the list of other pages.
footer { background: #9bc152; }
footer:after { content: " "; display: table; clear: both; }
footer a { float: left; box-sizing: border-box; width: 20%; text-align: center; background: #9bc152; padding: 1em 0; color: #f6f4ec; letter-spacing: 0.5em; }
footer a:nth-of-type(even) { background: #81a53d; }
footer a:hover { background: #f6f4ec; color: #9bc152; }
aside { width: 100%; }
.sidebar { background: #1b1b21; color: #6b6d85; padding: 4em 0; text-align: center; }
.design-selection { float: left; width: 60%; font-style: italic; box-sizing: border-box; border-right: 1px solid #6b6d85; }
.design-archives, .zen-resources { display: inline-block; display: 40%; }
.sidebar h3 { font-size: .75em; margin: 0; line-height: 1.6em; padding: 0.5em 4%; color: #6b6d85; }
.sidebar ul { padding: 0; }
.sidebar li { list-style: none; padding: 0.3em 2%;
}
.sidebar a { font-family: 'Alegreya Sans SC','Alegreya Sans', Verdana, Tahoma, sans-serif; font-style: normal; color: #9bc152; letter-spacing: 0.06em; }
.sidebar a:hover { color: #f6f4ec; }
.design-selection a:nth-of-type(even) { font-family: 'Alegreya Sans', Verdana, Tahoma, sans-serif; color: #f6f4ec; }
.sidebar a:hover:nth-of-type(even) { color: #47495d; }
.zen-resources h3 { padding: 0.92em; }
.design-archives a, .zen-resources a { color: #47495d; }
3 Answers
Sebastian Hirsch
9,737 PointsHi Joseph,
in the rule
.design-archives, .zen-resources { display: inline-block; display: 40%; }
replace "display: 40%" with "width: 40%".
This causes the problem.
Best regards, Sebastian
Kevin Korte
28,149 PointsHaven't done this course yet, but is there code that goes a long with this question that you've tried?
Anthony Myers
5,848 PointsHey Joseph,
"My resources and archives section didn't stack on top of each-other"
What exactly do you mean by that? I haven't taken this course yet either, so we'll need a bit more info on what it is you're trying to do.
Joseph Davis
2,971 PointsIn the footer there are sets of links to other pages but the set called resources and the set called archives aren't stacking on top of each other like they're meant to be.