Im having trouble with the syntax for the height


#1

im having trouble with the syntax for the height


#2

@williams_armani_wiza,

google search
height site:jquery.com
http://api.jquery.com/height/


#3

I have the same problem and I don't understand the solution provided by @leonhard_wettengmx_n (sorry, dude).

My code:
div { height:50px;
width:120px;
border-color: #6495ED;
background-color: #BCD2EE;
border-style: solid;
border-width: 2px;
}

And the warning:
" Oops, try again. Did you remember to give your div a height of 50px? It looks like it's 50.33334000000001px."


#4

@williams_armani_wiza do the following:

Put your code like this:
div {
height: 50px;
width: 120px;
border-color: #6495ed;
background-color: #BCD2EE;
}

AND DON'T COMPLETE THIS:
"Your border-style can be any type (dashed, solid, and so on) and you can use any border-width you want. (We like 2px.)"


#5

I'm using Chrome.
font-size is 16.3636360168457px instead of 16px.
You have to enter the 'Settings' => 'Advanced settings' (in the very bottom)
and to chose 100% in the Page scale (in my browser it was 125%).
http://www.codecademy.com/forum_questions/5562cbbe93767652470006d0


#6

I am using Chrome.

I was having the same exact problem.

I reduced the size of the page, and then enlarged it (and continued trying to submit my work) until it worked.

Very strange, but now functioning properly.

Hope this helps ya out!
-james scott