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 trialToni Dzalto
21,667 PointsWhy does my ".is-sticky .grid-full h5" not change color to yellow?
.header {
background-color: white;
transition: 1s;
}
.is-sticky .header {
background-color: black;
}
.is-sticky header a {
}
header{
width: 100%;
}
.grid-full h5 {
background-color: black;
}
.is-sticky .grid-full h5 {
background-color: yellow;
}
1 Answer
Aaron HARPT
19,845 PointsCan you post what your HTML looks like?
Toni Dzalto
21,667 PointsToni Dzalto
21,667 Pointsthe css is referencing to HTML which was given from the task. But it later worked when I added a class in HTML to specify the h5.