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 trialEthan Mitchell
5,607 Pointshelp me
help
/* Complete the challenge by writing CSS below */
.logo
{
position: absolute;
}
.logo
{
top: offset; -45px
left: offset; 125px
}
<!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>
2 Answers
Chris Thomas
Front End Web Development Techdegree Graduate 34,909 PointsWell it seems you passed task 1 correctly
.logo {
position: absolute;
}
A few errors going forward from here though. First, while correct, you actually don't need to select .logo again underneath it. Just put the additional properties inside the first. The errors occur with 'offset'. That's not a valid property value it should just be the pixel values.
.logo {
position: absolute;
top: -45px;
left: 125px;
}
Task 3 wants you to set the class card to a relative position
.card {
position: relative;
}
vincent batteast
51,094 Pointsno need to the word Offset
.logo { position: absolute; top: offset; -45px left: offset; 125px }
Ethan Mitchell
5,607 Pointsthank you
Ethan Mitchell
5,607 PointsEthan Mitchell
5,607 Pointsthank you