Stuck in 7/10 Instructions 4


#1

I'm stuck on Making A Website: font-size (7/10), Instruction 4

When I try to run this code nothing happened, and Instruction 4 not solved

.hero a {
padding: 250px 0;
margin: 30px;
font-family: 'Trebuchet MS', Helvetica, sans-serif;
font-size: 1.25em;
}


#2

Can you post the link to your code?


#3

@yazan991
Have you tried a refresh Browser

General Notes:
Always refresh the browser after making corrections:
CTRL f5 ( if on Windows or Linux)
CMD r ( if on a MAC).
CTRL 0 to reset browser zoom


#4

https://www.codecademy.com/en/courses/make-a-website/lessons/closer-look-css/exercises/font-size?action=lesson_resume


#5

yes i do that, i don't understand where is the error?


#6

@yazan991
I can only guess that you changed the main.css
as the .hero and the .hero a selectors are different......

.hero {
  font-family: 'Trebuchet MS',Helvetica,sans-serif;
	padding: 250px 0;
	margin: 30px;
  background-image: url("https://s3.amazonaws.com/codecademy-content/projects/make-a-website/lesson-2/bg.jpg");
  background-size: cover;
  color: #ffffff;
}


p {
   font-size: 2rem;
}

.hero a {
	color: #00FFAA;
	font-size: 1.25em;
	text-decoration: none;
}

#7

Remember to write your CSS for the correct selector. The .hero and .hero a selectors are different, as @leonhard.wettengmx.n mentioned. What is the error message being displayed?


#8

yes, thanks a lot relly i didn't nots that befor the problem is solved


#9

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