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 trialKaren Shumate
13,579 PointsAdd the pseudo-element that will insert content after the element.
I am having trouble adding the url to the content. That is if this is the correct method to use.
/* Complete the challenge by writing CSS below */
.progbar a::after{
content: attr(http://teamtreehouse.com);
display: block;
width: 50%;
height: 100%;
border-radius: inherit;
background-color: #5ece7f;
}
.progbar {
display: block;
width: 24px;
height: 24px;
border-radius: 50%;
position: absolute;
left: 49%;
top: -9px;
background-color: #7dd898;
}
.progbar {
height: 6px;
border-radius: 3px;
background: #d6d7d9;
position: relative;
margin-bottom: 3.875em;
}
<!DOCTYPE html>
<html>
<head>
<title>Selectors</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="page.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="progbar"></div>
<a href="http://teamtreehouse.com">Check out the URL: </a>
</body>
</html>
1 Answer
Steven Parker
231,269 PointsIt's not clear what task you're on here. It looks like you are attempting task 4, but the work that should still be there from the previous tasks is missing.
Remember to observe the general hint included in every challenge: "Important: In each task of this code challenge, the code you write should be added to the code from the previous task." So unless the instructions say specifically otherwise, the work you did in previous tasks must remain as it was when that task passed.
When you do get to task 4, the argument to the "attr" function should be just the name of the attribute being referenced (not its contents).