Simple Jquery Responsive Dropdown Menu Step By Step
HTML CODE
jQuery Move DIV Element with Arrow Keys HomeContactAboutBlogHomeContactAboutBlog
CSS CODE
body{ margin:0; padding:0; } .s1{width:100%; height:50px; } .d1{width:100%; height:50px; float:left; display:block; background-color:red; } .d2{width:100%; height:50px; float:left; display:none; background-color:green; position:relative; } .a1{ width:calc( 25% - 2px); height:48px; background-color:blue; float:left; border:1px solid black; } .bb{ width:100%; height:204px; position:absolute; top:50px; left:0; display:none; } .b1{ width:100%; height:50px; margin-bottom:1px; background-color:pink; } .c1{ width:40px; height:40px; margin-left:20px; margin-top:5px; background-color:red; } @media (max-width:769px) { .d1{ display:none; } .d2{ display:block; } }
JAVASCRIPT CODE
$(".c1").click(function() { $(".bb").slideToggle(1000); });
The post Simple Jquery Responsive Dropdown Menu Step By Step appeared first on Sanjay Web Designer.
This post first appeared on Web Designing Courses - Graphics Design Courses -, please read the originial post: here