This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by wilheter
over 8 years

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

0 votes

Permalink

all semi-colons are missing

points
Submitted by stetim94
over 8 years

Answer 55fac91a95e3783153000193

0 votes

Permalink

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.

points
Submitted by Bob
over 8 years

2 comments

stetim94 over 8 years

The error message truely is a zoom issue, just set your zoom to 100%, the code is fine

Bob over 8 years

Fixed my problem by changing to Google Chrome when I’m coding. No more error messages anymore.

Answer 55facd6f95e378f7db00036a

0 votes

Permalink

Also, I was using Firefox and tried to enter the work in IE, and got the same error message.

points
Submitted by Bob
over 8 years

Answer 5604dd923e0ec858e3000614

0 votes

Permalink

Play Around with the zoom on your browser. Try it at 90% 0r 80%

points
Submitted by sblam
over 8 years