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 triallovemore tshuma
12,989 PointsChallenge Task 1 of 3 Select the class logo and give it absolute positioning. I can't get the code pliz do help
it keeps on saying bummer "you need to select class "logo"
/* Complete the challenge by writing CSS below */
.class-"logo"
{
position: absolute;
}
<!DOCTYPE html>
<html>
<head>
<title>CSS Positioning</title>
<link href='https://fonts.googleapis.com/css?family=Varela+Round' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="page.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="card">
<img class="logo" src="city-logo.svg" alt="logo">
<h2>Best City Guide</h2>
<p>Cheesecake oat cake marshmallow. Bonbon pastry apple pie danish donut bonbon marshmallow caramels. Bear claw chocolate bar lemon drops. Carrot cake jelly beans jelly beans pie.</p>
</div>
</body>
</html>
5 Answers
izqcabvvli
4,111 PointsMy pleasure :). Please vote the answer as the best answer so that others might know the problem is solved.
izqcabvvli
4,111 Points/* Complete the challenge by writing CSS below */
.logo
{
position: absolute;
}
lovemore tshuma
12,989 Pointsthnx Stephen you are star
lovemore tshuma
12,989 Points.class logo{ position: absolute; } hey Cindy thnx but its stil give me a bumer ,have you tried running the code?, if so pliz send me the full code
izqcabvvli
4,111 Points+lovemore tshuma My pleasure :).
Cindy Lea
Courses Plus Student 6,497 PointsYou need to do this: .class logo dont use - or "
Silvia Roman
2,222 PointsHey I did it with this :
logo { position:absolute; }
lovemore tshuma
12,989 Pointslovemore tshuma
12,989 Points.class logo{ position: absolute; } stil giving me a "bummer"