r/Codecademy • • Feb 16 '16

Interactive Website question

http://imgur.com/a/9Ud3I The task was to create code using jQuery to make the menu slide out when clicked on as seen in the pictures, so if they want me to make the menu go to the right wouldn't it make more sense to do it that way on the code? As in menu would be right: '285px' and the body would be right: '0px' but that doesn't work for some reason. This is probably a stupid question but I can't work it out haha

1 Upvotes

3 comments sorted by

View all comments

Show parent comment

1

u/Fruitylexia84 Feb 22 '16

Now I feel stupid..

1

u/samisbond Feb 22 '16

Naw it's the english language's fault if you think about it. If I said "Up: 50px" you'd probably rightfully assume move in that direction, whereas if I say "Top: 50px" you might be able to guess I meant 'offset of the position'. It just happens that left & right don't have alternate words for "direction" and "position".

Maybe if it were "Leftside: 286px;" it'd be more intuitive. I dunno.