html css and js not working

Tags: , , ,

This is my code:

<!doctype html>
<html lang="en-US">
    <title>Welcome - Home</title>
    <link type="text/css" rel="stylesheet" href="Home.css">
    <link rel="icon" href="KLOGO.png" type="image/png"/>
    <script src=""></script>
    <script src="Home.js"></script>
<body class="menu">
        <a href="#" class="menu-toggle">Toggle</a>
        <nav class="menu-side">
            This is a side menu
    <p> sioeufh iufha dgrkljbgril unfvuabervluiyboyubn serlibglisuhsefiuh oaisuf aieufh aosih asioeufh iufha dgrkljbgril unfvuabervluiyboyubn serlibglisu</p>
    <p>oierua yugafapiwugText and more tejiaslirfuh aiufh oaiuefhioaushf aisbhfailsubfaufha dgrkljbgril unfvuabervluiyboyubn serlibglisuh oaiusg foiygasdefoiawg pghuioyf gaiwuebfyaweoilru gfa s7ierfygasrgoooa8iweygfra iiiastygf a8we8</p>

The css:

    background: #333;
    border-right: 1px solid #000;
    color: #fff;
    position: fixed;
    top: 0;
    left: -231px;
    width: 210px;
    height: 100%;
    padding: 10px;
    position: relative;
    left: 0px;
.menu-open {
    left: 231px;

And the jquery:

(function () {
var body = $('body');
$('.menu-toggle').bind('click', function () {
    return false;

I’m using the Brackets program to write my code, but when I go to the live view after I saved everything and i press “toggle” the page wont move and I looked over everything and Im 98% sure its correct.


Put <script src="Home.js"></script> before the </body> tag.

I made another class


and JQuery

(function () {
var body = $('body');   
$('.menu-toggle').bind('click', function () {
    return false;

Also added

.menu, .menu-side{
    transition: 300ms;

for a nice slide 🙂

JSFiddle demo

Source: stackoverflow