Accourding Menu

/************************************Jquery***********************************/
$(".Selector h1").click(function () {
               if ($(this).next("table").is(":visible")) {
                   $(this).next("table").slideUp("slow");
               } else {
                   $(".menu-items table").slideUp("slow");
                   $(this).next("table").slideToggle("slow");
               }
           });


/************************************HTML***********************************/
<div class="Selector">
            <h1 class="catering" style="background-image:url(http://www.carlinosmarket.com/image/data/1_breakfast_goods.jpg);">Breakfast Goods</h1>
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                  <tr>
                      <td>.........</td>
                   </tr>
            </table>
</div>

/*********************************CSS*****************************************/

.Selector table {
            display:none;
        }
.Selector h1 {
            width:710px;
            height:120px;
        }

Comments

Popular posts from this blog

Scroll After Fixed Navigation

Bootstrap CSS Customize with SCSS CSS

Best way to prevent page scrolling on drag (mobile)