Avatar of jagguy
jagguy
Flag for Australia asked on

menu pushes links down

Hi,

How can I get the sub menu on about us link on left to display properly?
If the browser resizes the submenu doesnt dtay in place and it pushes the other links down whichI dont want.


http://www.mymrt.net/hugh/home2.php

/* sub menu*/
 ul#vertmenu li ul {
 	display: none;
        color:#fff;
        background:#666;
        position: relative; //tried absolute
        left: 200px;
        overflow: hidden;
 }
 
 ul#vertmenu li:hover ul {
        display: block;   
    }
 
 .more{
        display:none;
    }

Open in new window

CSSHTMLPHP

Avatar of undefined
Last Comment
jagguy

8/22/2022 - Mon
Scott Fell

You have those items hidden already based on the media queries.  Where is it pushing down?

@media screen and (max-width: 480px) {
		 body{
          font-size: 1em; 
      	  line-height:150%;
       
	  }
	 
	 #mainContent {
	color:black; 
	 text-align:left; 
	  margin-right:5%;
	 margin-left:5%;
 }
		ul#navcontainer {
		display:none;
	}

Open in new window

/* FOR MOBILE RESOLUTIONS */
/* Mobile Landscape Size to Tablet Portrait (devices and browsers) */
	@media only screen and (min-width: 480px) and (max-width: 767px) {
		
			 body{
          font-size: 1em; 
      	  line-height:150%;
       
	  }
	 
	 #mainContent {
	color:black; 
	 text-align:left; 
	 width:100%; 
          
 }
	 
	   #nav-status {
        display: block;
        width: 100%;
        height: 50px;
        padding: 2px;
        background: #000;
        color: #FFF;   
    }
	
	ul#navcontainer {
	display:none;
	}
	

Open in new window

jagguy

ASKER
put the mouse on the about us on left menu and see the sub menus come up.
The link below about us 'dye colors gets pushed down and i hate this look.
Scott Fell

The screenshot is from mac/chrome.  I also tested on mac/firefox and windows 7/ie 11 and can't reproduce it.
screenshot
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
ASKER CERTIFIED SOLUTION
jagguy

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Scott Fell

Can you please point to the post with the correct answer.
jagguy

ASKER
solved elsewhere on another post