Results 1 to 6 of 6

Thread: Menu inaccessible because of z-index

  1. #1
    Join Date
    Dec 2009
    Posts
    62

    Menu inaccessible because of z-index

    To help me create template in Joomla, I would like to have a background image on which I superimpose a logo. Everything used to support a horizontal menu. To make visible elements, I used z-index, and it works. At least the elements are visible, but I can not click on the menu! So I tried to remove the z-index on the top_menu, and to put on another logo, but it does not help me! Is what I have done wrong? What should I do to access my menus?

    I enclose below the part to the code:

    HTML Code:
    #top_menu {
    		background-image: url(../images/top_menu.png);
    		width: 1000px;
    		line-height:70px; /* help to place the text in height */
    		margin:0px;
    		height:70px;	
    		position: absolute;
    		z-index: -1; 	}
    	
    	#top_menu li {
    		display: inline;
    		margin: 10px; 	}
    	
    	#logo img{
    		float: right;
    		/*z-index: 100;*/
    		margin-right: 10px; 	}

  2. #2
    Join Date
    May 2008
    Posts
    685

    Re: Menu inaccessible because of z-index

    There is nothing wrong whatever you have done but a z-index can never be negative. So no HTML code can help you. To explain you in a much better it is best to give us a URL where we can see the problem by ourselves. I hope you got my point.

  3. #3
    Join Date
    Dec 2009
    Posts
    62

    Re: Menu inaccessible because of z-index

    Thank you for your response. The relevant html code is here:

    HTML Code:
    <body>
    <div id="header">
       <div id="top_menu"> 			
       <ul>
       <li><a href="1.html">Land Surveying</a></li>
       <li><a href="2.html">GIS</a></li>
       <li><a href="3.html">Agriculture</a></li>
       <li><a href="4.html">Geoteam</a></li>
       </ul>
       </div><!-- #top_menu -->	
     
       <div id="logo">
       <img alt="" src="./images/geoteam_logo_hvidt_3.PNG" alt="Geoteam logo" />
       </div><!-- #logo -->
    </div><!-- #header -->
    For the site URL, the site is currently not working and so there is no point to give the URL of the site.

  4. #4
    Join Date
    May 2008
    Posts
    685

    Re: Menu inaccessible because of z-index

    There's a lot of things to see here. Some information for your menu in the header, I'll let you look the same for your left hand menu:

    - In #top_menu, remove background-image position: absolute, width: 1000px and z-index: -1.
    - In your #top_menu, add a float:left.
    - In your #header, add a background-color: #7399C6 and an overflow:hidden.

  5. #5
    Join Date
    Dec 2009
    Posts
    62

    Re: Menu inaccessible because of z-index

    Thank you for your quick response. I have to control everything (html/css) and found nothing strange. But, if I remove the z-index:-1, top menu works (in firefox & chrome), although the left menu does not work forever. I think it's the last 2 errors, and it is mainly that of the top menu that bothers me the most!

  6. #6
    Join Date
    May 2008
    Posts
    685

    Re: Menu inaccessible because of z-index

    Let me be clear: there is no "if"! We must remove the "-1" which is not a valid value for a z-index and disrupts the functioning of page:cf.

    To the left menu, you just remove the position:relative on the footer. Better, you are including #left_column and #container of a third div where you put an overflow:hidden.

Similar Threads

  1. Does Google decides which content to index & what not to index?
    By Uddhav in forum Technology & Internet
    Replies: 5
    Last Post: 04-03-2010, 07:37 PM
  2. SME 7.4 server inaccessible
    By AZUL in forum Networking & Security
    Replies: 5
    Last Post: 16-01-2010, 02:12 PM
  3. Inserting an index entry into index 0 of file 25
    By Dharmesh Arora in forum Operating Systems
    Replies: 3
    Last Post: 16-07-2009, 10:10 AM
  4. Site inaccessible to mac
    By Jacek in forum Software Development
    Replies: 6
    Last Post: 03-04-2009, 06:27 PM
  5. Inaccessible Hard Drive
    By crispie764 in forum Hardware Peripherals
    Replies: 7
    Last Post: 01-12-2008, 05:44 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,055,926.64058 seconds with 16 queries