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
tillie crowe
1,836 PointsHelp - CSS test
I'm on the CSS Foundations - Selectors - Code Challenge: More Selectors - 2/4 question I input this code h2 + p { background-color: #00ffff;} Its giving a recheck work of "The Adjacent Combinator is +, try double checking your css selectors." - I don't know what I'm doing wrong - help - thanks
6 Answers
James Barnett
39,199 Pointstillie crowe - Your CSS selector was fine, however the instructions asked for you to use the color keyword lightblue.
You used the hex color #00FFFF that's is officially defined as the color keyword aqua, on the other hand lightblue is defined as #ADD8E6.
John Satterfield
13,695 PointsYou do not need to join them together. If you are editing the values of the paragraph element just use:
p {
background-color: #00FFFF;
}
James Barnett
39,199 Pointstillie crowe - When posting a question related to a code challenge make sure to quote the instructions.
Thomas Wyatt
3,796 PointsHi Tillie! From looking at what you've written here and back at that code challenge, I think I see where you're stuck at. The instruction is, "Use the Adjacent Sibling Combinator to select the <p> elements that immediately follow the h2. Set their background to lightblue." So what you need is not background-color:#00FFFF, but background: lightblue. So at that step your code should look like:
div > a {color: green; font-weight: bold;}
h2 + p {background: lightblue;}
tillie crowe
1,836 PointsThank you Thank you Thank you - I almost tore my hair out on this one :)
tillie crowe
1,836 Pointsthank you ALL