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 trialallison woods
4,704 Pointshow to Create a new rule that targets .star-bg on hover. Use an SVG property to change the fill color to steelblue.
it keeps saying bummer
<!DOCTYPE html>
<html>
<head>
<title>Animating SVG with CSS</title>
<link rel="stylesheet" href="base.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="60 60 240 240">
<g>
<circle class="star-bg" fill="#40adcf" stroke="#fff" stroke-width="6" cx="180" cy="180" r="108.3"/>
<path class="star" fill="#fff" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="M180 107.8l16.9 52.1h54.8l-44.3 32.2 16.9 52.1-44.3-32.2-44.3 32.2 16.9-52.1-44.3-32.2h54.8z"/>
</g>
<circle class="star-bg" fill="#40adcf" stroke="#fff" stroke-width="6" cx="180" cy="180" r="108.3"/>
<path class="star" fill="#fff" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="M180 107.8l16.9 52.1h54.8l-44.3 32.2 16.9 52.1-44.3-32.2-44.3 32.2 16.9-52.1-44.3-32.2h54.8z"/>
</svg>
</body>
</html>
/* Complete the challenge by writing CSS below */
.star-bg { transition: fill 1s; }
.star-bg:hover
{
transition:fill steel blue;
}
3 Answers
Angela Visnesky
20,927 PointsHi Allison! The color is steelblue, all one word. You have it as steel blue. Try removing that space and see what happens. I hope this helps!
David Rhodes
Courses Plus Student 2,352 PointsKeeps saying 'bummer' to me too, and my code is working in preview to the test spec. I am using 'steelblue', also tried the hexvalue. No love. No options to skip.
Anthony Harley
8,993 Pointsmine not working either
<!DOCTYPE html> <html> <head> <title>Animating SVG with CSS</title> <link rel="stylesheet" href="base.css"> <link rel="stylesheet" href="style.css"> </head> <body> <svg xmlns="http://www.w3.org/2000/svg" viewBox="60 60 240 240"> <g> <circle class="star-bg" fill="#40adcf" stroke="#fff" stroke-width="6" cx="180" cy="180" r="108.3"/> <path class="star" fill="#fff" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="M180 107.8l16.9 52.1h54.8l-44.3 32.2 16.9 52.1-44.3-32.2-44.3 32.2 16.9-52.1-44.3-32.2h54.8z"/> </g> <circle class="star-bg" fill="#40adcf" stroke="#fff" stroke-width="6" cx="180" cy="180" r="108.3"/> <path class="star" fill="#fff" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="M180 107.8l16.9 52.1h54.8l-44.3 32.2 16.9 52.1-44.3-32.2-44.3 32.2 16.9-52.1-44.3-32.2h54.8z"/> </svg> </body> </html>
/* Complete the challenge by writing CSS below */ .star-bg { transition: fill 1s; } .star-bg:hover { transition:fill: steelblue; }
allison woods
4,704 Pointsallison woods
4,704 Pointsits still saying bummer make sure you're including fill property