Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 10-22-2010, 10:44 AM Menu Issue
evans123's Avatar
Ultra Talker

Posts: 468
Trades: 0
I have created a css only vertical flyout menu. Can be seen at http://test.benwebdeveloper.com/dashboard.php

The main issue is that there is a small gap between the parent menu item and its flyout menu, therefore when you move slowly from the parent item to the flyout menu it disappears, can anybody help me?

CSS Code:
Code:
/*
    Menu Layout
*/
#menu {
    height: 100%;
    width: 175px;
    margin:15px 5px 15px -160px;
    z-index: 9999;
}

#menu a {
    color: #777777;
    width: 100%;
    display: block;
}

#menu a img {
    padding: 6px 0;
    float: right;
}

#menu .menu-holder, #menu .menu-submenu {
    background-color: #FFFFFF;
    border: 1px solid #AAAAAA;
}

#menu .menu-holder-inner {
    padding: 5px;    
}

#menu .menu-title {
    padding: 5px;
    display: block;
    background-color: #F5F5F5;
    border-bottom: 1px solid #AAAAAA;
    /* background-color: #F5F5F5;
    border: 1px solid #E3E3E3; */
}
#menu li ul li {
    padding: 1px 5px 3px 12px;
    border: 1px solid #FFFFFF;
    display: block;
}

#menu .menu-has-submenu {
    background: #FFFFFF url(../../images/gray-arrow-right.png) no-repeat scroll 145px center;
}
#menu li ul li:hover {
    background-color: #F5F5F5;
    border: 1px solid #E3E3E3;
}

#menu li ul li:hover .menu-submenu {
    display: block;
    margin-left: 155px;    
    margin-top: -20px;
}

#menu .menu-submenu {
    width: 175px;
    position: absolute;
    display: none;
}
HTML Code:
HTML Code:
                <ul id="menu">
                
                    <li class="menu-holder">
                    
                    <div class="menu-title">Navigation</div>
                    
                        <div class="menu-holder-inner"><!-- Start Menu Inner -->

                            <ul>
                            
                                <li class="menu-has-submenu">
                                
                                    <a href="../../index.php" title="Home">Home</a>
                                    
                                    <div class="menu-submenu">
                                    
                                        <div class="menu-holder-inner">
                                    
                                            <ul>
                                            
                                                <li>
                                                
                                                <a href="../../index.php" title="Home">Home</a>
                                                
                                                </li>
                                            
                                            </ul>
                                            
                                        </div>
                                    
                                    </div>
                                    
                                </li>
    
                                <li class="menu-has-submenu">
                                
                                    <a href="../../index.php" class="menu-submenu-link" title="Home">Home</a>
                                    
                                    <div class="menu-submenu">
                                    
                                        <div class="menu-holder-inner">
                                    
                                            <ul>
                                            
                                                <li>
                                                
                                                <a href="../../index.php" title="Home">Home</a>
                                                
                                                </li>
                                            
                                            </ul>
                                            
                                        </div>
                                    
                                    </div>
                                    
                                </li>
                                
                            </ul>
                            
                        </div><!-- End Menu Inner -->
                        
                    </li>
            
                </ul>

Last edited by evans123; 10-22-2010 at 10:58 AM..
evans123 is offline
Reply With Quote
View Public Profile Visit evans123's homepage!
 
 
Register now for full access!
Old 10-22-2010, 10:56 AM Re: Menu Issue
Skilled Talker

Posts: 69
Name: erich bana
Location: somewhere on earth
Trades: 0
Quote:
Originally Posted by evans123 View Post
I have created a css only vertical flyout menu. Can be seen at http://test.benwebdeveloper.com/dashbaord.php
[/HTML]
link is not working for me
erich_here is offline
Reply With Quote
View Public Profile
 
Old 10-22-2010, 10:58 AM Re: Menu Issue
evans123's Avatar
Ultra Talker

Posts: 468
Trades: 0
Fixed now, mispelt it sorry.
evans123 is offline
Reply With Quote
View Public Profile Visit evans123's homepage!
 
Old 10-22-2010, 11:20 AM Re: Menu Issue
Skilled Talker

Posts: 69
Name: erich bana
Location: somewhere on earth
Trades: 0
here is ur solution

#menu li ul li:hover .menu-submenu {
display: block;
margin-left: 155px;
margin-top: -20px;
}

decrease the margin-left:155px by 2px that is 153px
erich_here is offline
Reply With Quote
View Public Profile
 
Old 10-22-2010, 11:24 AM Re: Menu Issue
evans123's Avatar
Ultra Talker

Posts: 468
Trades: 0
Theres still a tiny gap and the flyout menu is now overlapping the main navigation box. I want the flyout to be inline with the main navigation box.
evans123 is offline
Reply With Quote
View Public Profile Visit evans123's homepage!
 
Old 10-22-2010, 12:47 PM Re: Menu Issue
Skilled Talker

Posts: 69
Name: erich bana
Location: somewhere on earth
Trades: 0
In css

#menu a {
color: #777777;
width: 100%;
display: block;
}

change the width 100% to width:160px

it will solve ur prob this time i have checked it
erich_here is offline
Reply With Quote
View Public Profile
 
Old 10-22-2010, 12:52 PM Re: Menu Issue
evans123's Avatar
Ultra Talker

Posts: 468
Trades: 0
Thanks for helping, Its solved now.

I think that's the best its going to get, if u hover over the bit inbetween it still shows the menu when it shouldnt!

Last edited by evans123; 10-22-2010 at 12:55 PM..
evans123 is offline
Reply With Quote
View Public Profile Visit evans123's homepage!
 
Old 10-22-2010, 01:22 PM Re: Menu Issue
Skilled Talker

Posts: 69
Name: erich bana
Location: somewhere on earth
Trades: 0
Quote:
Originally Posted by evans123 View Post
Thanks for helping, Its solved now.

I think that's the best its going to get, if u hover over the bit inbetween it still shows the menu when it shouldnt!
I suggest you to change the width from 160px to 154.8px
whatever below this will result in same old problem.

Last edited by erich_here; 10-22-2010 at 01:25 PM..
erich_here is offline
Reply With Quote
View Public Profile
 
Old 10-22-2010, 01:27 PM Re: Menu Issue
evans123's Avatar
Ultra Talker

Posts: 468
Trades: 0
Ok thanks.
evans123 is offline
Reply With Quote
View Public Profile Visit evans123's homepage!
 
Old 10-24-2010, 11:18 PM Re: Menu Issue
Average Talker

Posts: 23
Name: Reynold Hugh
Trades: 0
There is another helping link of http://www.cssplay.co.uk/menus/flyoutt.html for these kind of problems. Just check out yourself and share your review.
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
rhugh is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Menu Issue
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.92200 seconds with 12 queries