This forum is now read-only. Please use our new forums! Go to forums
Problem with CSS Design a Button step 2 of 6
I am getting the message: “Oops, try again. Did you remember to give your div a height of 50px? It looks like it’s 0px.” on step 2 of 6 in the CSS Design a Button.
The code I am entering is: div { height: 50px width: 120px border: 2px solid #6495ED background-color: #BCD2EE }
Can anyone tell me what I am doing wrong?
Answer 55fa7f4293767668830000d3
Answer 55fac91a95e3783153000193
Here is my code: div { height: 50px; width: 120px; border-color: #6495ED; background-color: #BCD2EE; border-style: solid; border-width: 2px; margin: auto; } The error message is: Oops, try again. Did you remember to give your div a height of 50px? It looks like it’s 50.466660000000005px.
I have Ctrl+0 my screen zoom, played with the scroll zoom to only change the error size. I’m at a lost how to complete this exercise.
Answer 55facd6f95e378f7db00036a
Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency
2 comments
The error message truely is a zoom issue, just set your zoom to 100%, the code is fine
Fixed my problem by changing to Google Chrome when I’m coding. No more error messages anymore.