No ID, no entry..... needs help identifying the entry/problem


#1

Can somebody please help? I keep getting the error message:
Did you assign one of your 'friend'

s the id 'best_friend'?
I thought I got it right. Am I missing something in css?
Here is my current code beneath the link.
Thanks!


https://www.codecademy.com/en/courses/web-beginner-en-jNuXw/0/6?curriculum_id=50579fb998b470000202dc8b

<


<!DOCTYPE html>
<html>
	<head>
		<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
		<title>My Social Network</title>
	</head>
	<body>
		<!--Add your HTML below!-->
		  <div class="friend" id="best_friend"></div>	
		  <div class="family"></div>	
		  <div class="enemy" id="archnemisis"></div>	
	</body>
</html>

CSS:
/*Add your CSS below!*/

div {
	display: inline-block;
	margin-left: 5px;
	height: 100px;
	width: 100px;
	border-radius: 100%;
	border: 2px solid black;
}
.friend {
    border: 2px dashed #008000;
}
.family {
    border: 2px dashed #0000FF;
}
.enemy { 
    border: 2px dashed #FF0000;
}


#2

Hi @nwilli11,

When I copy/paste your code into the exercise that you've provided a link to, the error message that I get is:

Did you assign one of your 'enemy's the id 'archnemesis'?

It looks like you have made a typing mistake with the word archnemesis.

I couldn't reproduce the error message that you have reported.

Give it another try and let me know how it goes.


#3

Hello AR,
Thanks for replying.
I copy and pasted the error message below that I get below.

Oops, try again. Did you assign one of your 'friend'

s the id 'best_friend'?

Excuse the typo. I did change it.
Any chance you can show me the working code (index.html and stylesheet.css) that you use for this exercise? I really appreciate your response.


#4

Your exact code, except with archnemesis spelled correctly, passes the exercise for me.


#5

Okay It worked in a different browser. I was using Firefox. All codes have worked in Firefox up to know, but not that one. Thank you very much for your help. much appreciated!


#6

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.