Close the menu, white area


#1

$('body').animate({
left:'0px'

If I put $('.body') in icon-close I get white area.
when I write code without '.' point, then website work normal.

can somebody explain me why I can't use dot in body, and can use in menu element?


#2

because .body refers to an element with class body where as body refers to the html element <body></body>, and you don't have a html element with class body


#3

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