Oops, try again. It looks like your padding-top isn't 40px


#1

Hello guys! I'm stack in section 10 Padding. I searched the same problem to all forums but any of the solved answers didn't solve my code.
I'm here:

https://www.codecademy.com/en/courses/web-beginner-en-6merh/1/5?curriculum_id=50579fb998b470000202dc8b


I always take this error message :Oops, try again. It looks like your padding-top isn't 40px.
Also i tried to replace my code with codes which worked fine in others but still no solution


My code is this
* {
	border: 1px dashed black;
}

div {
	height: 50px;
	width: 100px;
	border: 2px solid wide;
	border-color:#FF0000;
	border-radius: 5px;
	background-color: #308014;
margin-top:20px;    
margin-right:50px;
margin-bottom:10px;
margin-left:5px;
padding-top: 40px;
padding-right: 40px;
padding-bottom: 40px;
padding-left: 40px; 
}

Thanks :(


#2

Try reseting the code (avoiding merging the two div rules as well) and just add your padding properties back in. It worked for me, so you may just need to reset and do it again.


#3

i tried it many times but it didn't work for me!


#4

Can you take a screenshot of the page with your code and the error?


#5


#6

Can you also post your html?


#7

i found the solution! There was any link from html to css! Thx very much for your help! I didn't noticed!


#8

Ah, awesome! :slight_smile: glad you got it.


#9

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