I've been inspecting this and going crazy trying to figure it out, but I can't find what's going on with this menu of mine.

The links and hover state are shifted lower and to the right on my site on this page: http://www.50allstars.com/2015/08/mega-menu.html

But elsewhere (off my site) it works perfectly. I've gone through my site's html line for line, and can't figure out what's affecting this negatively. Any help would be great. Thanks!

<link rel="stylesheet" href="https://dl.dropboxusercontent.com/u/5739741/OMAR/code/megamenu_files/HTML/css/megamenu.css"><!-- Mega Menu Stylesheet -->

<script type="text/javascript" src="https://dl.dropboxusercontent.com/u/5739741/OMAR/code/megamenu_files/HTML/js/jquery.js"></script><!-- jQuery -->
<script type="text/javascript" src="https://dl.dropboxusercontent.com/u/5739741/OMAR/code/megamenu_files/HTML/js/megamenu_plugins.js"></script><!-- Mega Menu Plugins -->
<script type="text/javascript" src="https://dl.dropboxusercontent.com/u/5739741/OMAR/code/megamenu_files/HTML/js/megamenu.js"></script><!-- Mega Menu Script -->
<script>
$(document).ready(function($){
    $('.megamenu').megaMenuCompleteSet({
        menu_speed_show : 300, // Time (in milliseconds) to show a drop down
        menu_speed_hide : 200, // Time (in milliseconds) to hide a drop down
        menu_speed_delay : 200, // Time (in milliseconds) before showing a drop down
        menu_effect : 'hover_fade', // Drop down effect, choose between 'hover_fade', 'hover_slide', etc.
        menu_click_outside : 1, // Clicks outside the drop down close it (1 = true, 0 = false)
        menu_show_onload : 0, // Drop down to show on page load (type the number of the drop down, 0 for none)
        menu_responsive:1 // 1 = Responsive, 0 = Not responsive
    });
});
</script>



<div class="page_wrapper">


    <div class="megamenu_container megamenu_dark_bar megamenu_light"><!-- Begin Menu Container -->


        <ul class="megamenu"><!-- Begin Mega Menu -->


            <li class="megamenu_button"><a href="#_">Mega Menu</a></li>


            <li><a href="#_" class="megamenu_drop">Home</a><!-- Begin Item -->


                <div class="dropdown_fullwidth"><!-- Begin Item Container -->


                    <div class="col_12">

                        <h1>Responsive Mega Menu Complete Set</h1>
                        <hr>

                    </div>

                    <div class="col_4">

                        <h3>Responsive Mega Menu</h3>
                        <p>This powerful <a href="http://codecanyon.net/user/Pixelworkshop/portfolio">Mega Menu</a> has been created to fit into any layout, responsive or not. All elements dimensions adapt automatically according to the menu bar that fills the width of its container.</p>             
                        <p>This menu works without a single line of javascript and degrades gracefully on older browsers. With the power of CSS3, all transition effects are smooth and easy to customize.</p>

                    </div>

                    <div class="col_4">

                        <h3>Full Width Drop Down !</h3>
                        <p>This is an example of a full width drop down. It expands automatically and seamlessly to fit exactly under the menu bar.</p>
                        <p>You can use other drop downs aswell and you can choose between 12 different sizes, from the smallest to the full width.</p>
                        <p>Tested on the most commons browsers, this menu works under Internet Explorer, Firefox, Safari, Chrome and Opera and on mobiles.</p>

                    </div>

                    <div class="col_4">

                        <h3>Simple List Examples</h3>

                    </div>

                    <div class="col_2 responsive_halfs">

                        <ul class="list_unstyled">
                            <li><a href="#_">Mega Menu</a></li>
                            <li><a href="#_">CSS3 Effects</a></li>
                            <li><a href="#_">Responsive</a></li>
                            <li><a href="#_">Easy to use</a></li>
                            <li><a href="#_">Cross-browser</a></li>
                            <li><a href="#_">Mega Dropdowns</a></li>
                            <li><a href="#_">Any content</a></li>
                            <li><a href="#_">Transitions</a></li>
                            <li><a href="#_">Full Width</a></li>
                            <li><a href="#_">Clean Markup</a></li>
                            <li><a href="#_">Documented</a></li>
                        </ul> 

                    </div>

                    <div class="col_2 responsive_halfs">

                        <ul class="list_unstyled">
                            <li><a href="#_">Typography</a></li>
                            <li><a href="#_">Columns</a></li>
                            <li><a href="#_">CSS Grid</a></li>
                            <li><a href="#_">Videos</a></li>
                            <li><a href="#_">Images</a></li>
                            <li><a href="#_">Iframes</a></li>
                            <li><a href="#_">Explorer</a></li>
                            <li><a href="#_">Chrome</a></li>
                            <li><a href="#_">Firefox</a></li>
                            <li><a href="#_">Safari</a></li>
                            <li><a href="#_">Opera</a></li>
                        </ul>   

                    </div>

                    <div class="col_12">
                        <hr>
                    </div>

                    <div class="col_1 responsive_sixths">
                        <a href="#_"><span class="social_icon social_icon_dribble"></span></a>
                    </div>

                    <div class="col_1 responsive_sixths">
                        <a href="#_"><span class="social_icon social_icon_forrst"></span></a>
                    </div>

                    <div class="col_1 responsive_sixths">
                        <a href="#_"><span class="social_icon social_icon_facebook"></span></a>
                    </div>

                    <div class="col_1 responsive_sixths">
                        <a href="#_"><span class="social_icon social_icon_ember"></span></a>
                    </div>

                    <div class="col_1 responsive_sixths">
                        <a href="#_"><span class="social_icon social_icon_you_tube"></span></a>
                    </div>

                    <div class="col_1 responsive_sixths">
                        <a href="#_"><span class="social_icon social_icon_vimeo"></span></a>
                    </div>

                    <div class="col_1 responsive_sixths">
                        <a href="#_"><span class="social_icon social_icon_flickr"></span></a>
                    </div>

                    <div class="col_1 responsive_sixths">
                        <a href="#_"><span class="social_icon social_icon_google"></span></a>
                    </div>

                    <div class="col_1 responsive_sixths">
                        <a href="#_"><span class="social_icon social_icon_rss"></span></a>
                    </div>

                    <div class="col_1 responsive_sixths">
                        <a href="#_"><span class="social_icon social_icon_skype"></span></a>
                    </div>

                    <div class="col_1 responsive_sixths">
                        <a href="#_"><span class="social_icon social_icon_tumblr"></span></a>
                    </div>

                    <div class="col_1 responsive_sixths">
                        <a href="#_"><span class="social_icon social_icon_twitter"></span></a>
                    </div>


                </div><!-- End Item Container -->


            </li><!-- End Item -->



            <li><a href="#_" class="megamenu_drop">Typography</a><!-- Begin Item -->


                <div class="dropdown_10columns dropdown_container"><!-- Begin Item Container -->


                    <div class="col_12">

                        <h2>Typography Examples</h2>

                    </div>

                    <div class="col_7 clearfix">

                        <p>Sed est nisi, ornare eget rutrum a, porta non enim. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Sed euismod, nunc eu accumsan volutpat, nibh augue ultrices orci, eget tincidunt turpis dolor quis lacus. Suspendisse at mi sem, id accumsan quam. Nullam dapibus, tellus et.</p>

                    </div>

                    <div class="col_5">

                        <p class="black_box">The content of this menu is hidden by using an absolute positioning and remains SEO friendly, add as much content as you want. Donec ac blandit turpis. Nunc dapibus, elit vitae mollis pretium, elit nunc interdum nisi.</p>

                    </div>

                    <div class="col_6 clearfix">

                        <h3>Texts with Icons</h3>

                        <p class="paragraph_icon"><span class="mini_icon ic_archive"></span>This is a paragraph with a settings icon. Curabitur lorem nulla, imperdiet quisque at metus a libero.</p>
                        <p class="paragraph_icon"><span class="mini_icon ic_bookmark"></span>This is a paragraph with a favorite icon. Praesent id nulla eu risus rhoncus. Donec tortor sem</p>
                        <p class="paragraph_icon"><span class="mini_icon ic_brush"></span>This is a paragraph with a lock icon. Ut pulvinar mauris at nunc vestibulum venenatis diam sit.</p>
                        <p class="paragraph_icon"><span class="mini_icon ic_cloud"></span>This is a paragraph with a bookmark icon. Nulla tincidunt, purus at luctus praesent id nulla.</p>
                        <p class="paragraph_icon"><span class="mini_icon ic_favorite"></span>This is a paragraph with a info icon. Vestibulum venenatis diam sit amet curabitur lorem nulla.</p>
                        <p class="paragraph_icon"><span class="mini_icon ic_graph"></span>This is a paragraph with a bubble icon. Quisque at metus a libero sodales cras sagittis, tortor at.</p>
                        <p class="paragraph_icon"><span class="mini_icon ic_picture"></span>This is a paragraph with a screen icon. Donec tortor sem, venenatis mauris quis augue lectus. </p>

                    </div>

                    <div class="col_6">

                        <h3>Other Examples</h3>

                        <p class="paragraph_icon"><span class="mini_icon ic_attachment"></span>This is a paragraph with a cloud icon. Curabitur lorem nulla, imperdiet quisque at metus a libero.</p>
                        <p class="paragraph_icon"><span class="mini_icon ic_calc"></span>This is a paragraph with a tag icon. Praesent id nulla eu risus rhoncus. Donec tortor sem.</p>
                        <p class="paragraph_icon"><span class="mini_icon ic_chat"></span>This is a paragraph with a layers icon. Ut pulvinar mauris at nunc vestibulum venenatis diam sit.</p>
                        <p class="paragraph_icon"><span class="mini_icon ic_edit"></span>This is a paragraph with a book icon. Nulla tincidunt, purus at luctus praesent id nulla eu.</p>
                        <p class="paragraph_icon"><span class="mini_icon ic_folder"></span>This is a paragraph with a paint icon. Vestibulum venenatis diam sit amet curabitur lorem nulla.</p>
                        <p class="paragraph_icon"><span class="mini_icon ic_list"></span>This is a paragraph with a search icon. Quisque at metus a libero sodales cras sagittis, tortor at.</p>
                        <p class="paragraph_icon"><span class="mini_icon ic_zoom"></span>This is a paragraph with a photo icon. Donec tortor sem, venenatis mauris quis augue lectus. </p>

                    </div>


                </div><!-- End Item Container -->


            </li><!-- End Item -->



            <li><a href="#_" class="megamenu_drop">Lists</a><!-- Begin Item -->


                <div class="dropdown_8columns dropdown_container"><!-- Begin Item Container -->


                    <div class="col_12">
                        <h2>Additional Lists</h2>
                    </div>

                    <div class="col_3 responsive_halfs">

                        <ol class="num">
                            <li><a href="#_">ThemeForest</a></li>
                            <li><a href="#_">GraphicRiver</a></li>
                            <li><a href="#_">ActiveDen</a></li>
                            <li><a href="#_">VideoHive</a></li>
                            <li><a href="#_">3DOcean</a></li>
                        </ol>   

                    </div>

                    <div class="col_3 responsive_halfs">

                        <ol class="num2">
                            <li><a href="#_">NetTuts</a></li>
                            <li><a href="#_">VectorTuts</a></li>
                            <li><a href="#_">PsdTuts</a></li>
                            <li><a href="#_">PhotoTuts</a></li>
                            <li><a href="#_">ActiveTuts</a></li>
                        </ol>   

                    </div>

                    <div class="col_3 responsive_halfs">

                        <ul class="list">
                            <li><a href="#_">FreelanceSwitch</a></li>
                            <li><a href="#_">Creattica</a></li>
                            <li><a href="#_">WorkAwesome</a></li>
                            <li><a href="#_">Mac Apps</a></li>
                            <li><a href="#_">Web Apps</a></li>
                        </ul>   

                    </div>

                    <div class="col_3 responsive_halfs">

                        <ul class="list2">
                            <li><a href="#_">Design</a></li>
                            <li><a href="#_">Logo</a></li>
                            <li><a href="#_">Flash</a></li>
                            <li><a href="#_">Illustration</a></li>
                            <li><a href="#_">More...</a></li>
                        </ul>   

                    </div>

                    <div class="col_12">

                        <h2>Paragraphs with Borders</h2>              
                        <p class="blue">Nulla quis metus a dolor feugiat porta. Phasellus sapien magna, gravida congue fermentum vel, gravida sit amet sapien. Quisque elit est, ullamcorper ac hendrerit eget, porta id enim.</p>
                        <p class="grey">Praesent a dolor sem. Sed scelerisque, tellus id pulvinar tristique, erat eros rutrum mi, id adipiscing arcu sem vel est. Ut ac turpis ipsum. Mauris leo nulla, vestibulum id bibendum.</p>
                        <p class="orange">Nulla quis metus a dolor feugiat porta. Phasellus sapien magna, gravida congue fermentum vel, gravida sit amet sapien. Quisque elit est, ullamcorper ac hendrerit eget, porta id enim.</p>
                        <p class="dark">Curabitur vulputate, massa sit amet mollis sodales, arcu quam scelerisque augue, ac elementum velit mauris ac tellus. Nunc dapibus mollis ante a sollicitudin. Nullam adipiscing.</p>
                        <p class="purple">Quisque varius, erat nec fermentum aliquam, erat urna venenatis orci, in semper lorem ante at dolor. Quisque scelerisque mattis magna ut lobortis. Cras porttitor scelerisque.</p>

                    </div>


                </div><!-- End Item container -->


            </li><!-- End Item -->



            <li><a href="#_" class="megamenu_drop">Videos</a><!-- Begin Item -->


                <div class="dropdown_fullwidth"><!-- Begin Item container -->


                    <div class="col_6">

                        <h2>This is a dark table</h2>

                        <table class="table_dark">
                          <tr><th>Title 1</th><th>Title 2</th><th>Title 3</th><th>Title 4</th></tr>
                          <tr><td>Cell 1</td><td>Cell 2</td><td>Cell 3</td><td>Cell 4</td></tr>
                          <tr><td>Cell 1</td><td>Cell 2</td><td>Cell 3</td><td>Cell 4</td></tr>
                          <tr><td>Cell 1</td><td>Cell 2</td><td>Cell 3</td><td>Cell 4</td></tr>
                          <tr><td>Cell 1</td><td>Cell 2</td><td>Cell 3</td><td>Cell 4</td></tr>
                        </table>

                        <h2>This is a light table</h2>

                        <table class="table_light">
                          <tr><th>Title 1</th><th>Title 2</th><th>Title 3</th><th>Title 4</th></tr>
                          <tr><td>Cell 1</td><td>Cell 2</td><td>Cell 3</td><td>Cell 4</td></tr>
                          <tr><td>Cell 1</td><td>Cell 2</td><td>Cell 3</td><td>Cell 4</td></tr>
                          <tr><td>Cell 1</td><td>Cell 2</td><td>Cell 3</td><td>Cell 4</td></tr>
                          <tr><td>Cell 1</td><td>Cell 2</td><td>Cell 3</td><td>Cell 4</td></tr>
                        </table>

                    </div>

                    <div class="col_6">

                        <h2>Add videos aswell !</h2>
                        <p>Sed at justo justo. Nunc pretium laoreet tincidunt. Curabitur ac ipsum vel quam vulputate tempor in eu nulla. Duis sodales tortor ut arcu dictum tincidunt.</p>
                        <div class="video_container">
                            <iframe src="http://player.vimeo.com/video/32001208?portrait=0&amp;badge=0"></iframe>
                        </div>
                        <p>Phasellus molestie facilisis orci ut bibendum. Aliquam accumsan eros sit amet metus egestas porta. Aenean at sapien leo. Aliquam dapibus sem ac arcu bibendum dignissim. Ut ac sapien ligula, et convallis diam.</p>

                    </div>


                </div><!-- End Item Container -->


            </li><!-- End Item -->



            <li><a href="#_" class="megamenu_drop">Form</a><!-- Begin Item -->


                <div class="dropdown_4columns dropdown_container"><!-- Begin Item Container -->


                    <div class="col_12">

                        <h3>Contact us !</h3>
                        <p>Phasellus molestie facilisis orci ut bibendum. Aliquam accumsan eros sit amet metus egestas porta.</p>

                        <form id="megamenu_form" name="contact" method="post">

                            <fieldset>  

                                <label for="name">Name <span class="required">*</span></label>
                                <input class="form-input" type="text" name="name" id="name" value="" required/>

                                <label for="email">Email <span class="required">*</span></label>
                                <input class="form-input" type="text" name="email" id="email" value="" required/>

                                <label for="message">Message <span class="required">*</span></label>
                                <textarea name="message" id="message" required></textarea>

                                <label for="captcha">3 + 2 = <span class="required">*</span></label>
                                <input class="form-input form-captcha" type="text" name="captcha" id="captcha" value="" required/>

                                <ul class="form-buttons">
                                    <li><input id="submit" type="submit" name="submit" value="Send" /></li>
                                    <li><input id="reset" type="reset" name="reset" value="Reset" /></li>
                                </ul>

                            </fieldset>  

                            <div id="success">
                                Your message was sent successfully! I will be in touch as soon as I can.
                            </div>

                            <div id="error">
                                Something went wrong, try refreshing and submitting the form again.
                            </div>

                        </form>

                    </div>


                </div><!-- End Item Container -->


            </li><!-- End Item -->



            <li><a href="#_" class="megamenu_drop">Fly-Out</a><!-- Begin Item -->


                <div class="dropdown_2columns dropdown_container"><!-- Begin Item Container -->


                    <ul class="dropdown_flyout">

                        <li><a href="#_">Level 1</a></li>

                        <li class="dropdown_parent"><a href="#_">Level 1</a>

                            <ul class="dropdown_flyout_level">

                                <li><a href="#_">Level 2</a></li>
                                <li><a href="#_">Level 2</a></li>
                                <li><a href="#_">Level 2</a></li>

                            </ul>

                        </li>

                        <li class="dropdown_parent"><a href="#_">Level 1</a>

                            <ul class="dropdown_flyout_level">

                                <li><a href="#_">Level 2</a></li>
                                <li><a href="#_">Level 2</a></li>
                                <li><a href="#_">Level 2</a></li>

                                <li class="dropdown_parent"><a href="#_">Level 2</a>

                                    <ul class="dropdown_flyout_level dropdown_flyout_level_left">

                                        <li><a href="#_">Level 3</a></li>
                                        <li><a href="#_">Level 3</a></li>
                                        <li><a href="#_">Level 3</a></li>

                                        <li class="dropdown_parent"><a href="#_">Level 3</a>

                                            <ul class="dropdown_flyout_level">

                                                <li><a href="#_">Level 4</a></li>
                                                <li><a href="#_">Level 4</a></li>
                                                <li><a href="#_">Level 4</a></li>

                                            </ul>

                                        </li>

                                    </ul>

                                </li>

                            </ul>

                        </li>

                        <li><a href="#_">Level 1</a></li>

                        <li class="dropdown_parent"><a href="#_">Level 1</a>

                            <ul class="dropdown_flyout_level">

                                <li><a href="#_">Level 2</a></li>
                                <li><a href="#_">Level 2</a></li>

                                <li class="dropdown_parent"><a href="#_">Level 2</a>

                                    <ul class="dropdown_flyout_level dropdown_flyout_level_left">

                                        <li><a href="#_">Level 3</a></li>
                                        <li><a href="#_">Level 3</a></li>
                                        <li><a href="#_">Level 3</a></li>
                                        <li><a href="#_">Level 3</a></li>

                                    </ul>

                                </li>

                            </ul>

                        </li>

                        <li><a href="#_">Level 1</a></li>
                        <li><a href="#_">Level 1</a></li>

                    </ul>                       

                </div><!-- End Item Container -->


            </li><!-- End Item -->



            <li><a href="http://codecanyon.net/user/Pixelworkshop/portfolio">Link</a></li>



            <li class="megamenu_right"><a href="#_" class="megamenu_drop">Right Item</a><!-- Begin Right Item -->


                <div class="dropdown_2columns dropdown_right dropdown_container droplast_right"><!-- Begin Right Item Container -->

                    <div class="col_12">

                        <ul class="list_unstyled">
                            <li><a href="#_">FreelanceSwitch</a></li>
                            <li><a href="#_">Creattica</a></li>
                            <li><a href="#_">WorkAwesome</a></li>
                            <li><a href="#_">Mac Apps</a></li>
                            <li><a href="#_">Web Apps</a></li>
                            <li><a href="#_">NetTuts</a></li>
                            <li><a href="#_">VectorTuts</a></li>
                            <li><a href="#_">PsdTuts</a></li>
                            <li><a href="#_">PhotoTuts</a></li>
                            <li><a href="#_">ActiveTuts</a></li>
                            <li><a href="#_">Design</a></li>
                            <li><a href="#_">Logo</a></li>
                            <li><a href="#_">Flash</a></li>
                            <li><a href="#_">Illustration</a></li>
                            <li><a href="#_">More...</a></li>
                        </ul>   

                    </div>

                </div><!-- End Right Item Container -->


            </li><!-- End Right Item -->


        </ul><!-- End Mega Menu -->


    </div><!-- End Menu Container -->

</div>

Recommended Answers

All 5 Replies

As much as I hate the hover feature, it seems to be working the way you said you wanted it to in Firefox. Have you tried looking at it in several different browsers?

The problem is probably in the stylesheet, which you did not show us. Have you made the mistake of combining the following attributes in the same class or placing their classes in the same tag?

  • width or height attributes
  • margins, borders, or paddings
  • Absolute object locations

Internet Explorer makes a mess when this happens. It interprets these inside out from how the standard defines them.

I also do not see html tags or a doctype declaration. If both are missing, the browser will go into quirks mode.

commented: The style sheet is linked in the code: https://dl.dropboxusercontent.com/u/5739741/OMAR/code/megamenu_files/HTML/css/megamenu.css +2

It worked normal for me.

commented: On my site as well? +2

The only place it doesn't work is on my site, which means the other bits of code already present are interferring. I'm thinking I need an !important designated somewhere. Here's my site: http://www.50allstars.com/2015/08/mega-menu.html

This page says it's probably the line-height attribute, but I think I've tried that.

Thanks a ton for the help, guys!

look at padding sizes in the css

commented: I've been going through with the Inspector one by one changing those. Still, no dice. I think it's either line-height or the ul style being indented +2

Fixed it with this:

.widget .post-body ul {
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
}

Thanks, guys!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.