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

banner
Close banner
0 points
Submitted by rainbowconverse
over 8 years

Problem with 2/6

I think my code is correct but I keep getting the error message “Oops, try again. Did you remember to give your div a height of 50px? It looks like it’s 0px.” I’ve tried resetting the zoom but nothing works. Here is my code: img { display: block; height: 100px; width: 300px; margin: auto; }

p { text-align: center; font-family: Garamond, serif; font-size: 18px; }

/Start adding your CSS below!/

div { height:50px; width:120px; border:1px solid #6495ED; background-color:#BCD2EE; }

Answer 55fd2da4937676adef0002e5

0 votes

Permalink

A comment looks like this:

/*i am a comment*/

now, if i where to post that on the forum without format (like you did) it would look like this:

/i am a comment/

or with spaces:

/* i am a comment */

as you can see, the code looks italic, or the asterix are visible. Neither of this is true about your comment, so it seems your comment is faulty, and it is the only way i can reproduce the error.

points
Submitted by stetim94
over 8 years

3 comments

Cesar A. Izquierdo over 8 years

/* Does not work CTRL+0 not CTRL+F5 not zoom or switching browers*/ /* keep error about height is 0px */ /Start adding your CSS below!/

div { height:50px; width:120px; border:1px solid #6495ED; background-color:#BCD2EE; }

stetim94 over 8 years

did you read my answer? this comment: /Start adding your CSS below!/ is not really a comment, and causing the error

MissOgra over 8 years

It works if you remove “1px solid”

Answer 56004b71e39efec683000593

0 votes

Permalink

It works if you remove “1px solid”

points
Submitted by MissOgra
over 8 years