HTML - Ie7 Z-index Issue
I'm having some problems with a drop down menu appearing 'behind' the content below it even though it is absolutely positioned and has a higher z-index. You can see an example here of what I am talking about. If you look at it in Firefox vs IE7 you will see what I am talking about.
Currently the 'body' of my page is broken into 2 columns ('col_left', 'col_right'). Each are floated in their respective direction and each has a relative position. Each also contains a single (for the moment) 'pagelet' div. Eventually this will be a drag & drop app for users to add/edit/remove these various 'pagelets' and position them to their liking on the page. I found that by removing the relative position style from the 'col_left' and 'col_right' elements as well as from the 'pagelet_head' element will make my drop down menu's appear the way they should. Unfortunately all those elements have to have the style of relative position. If anyone has any suggestions I'd love to hear them as I'm a bit perplexed by all this considering the drop downs have a much higher z-index than anything else. All my code is below. Thanks for any help! Code: * { margin: 0; padding: 0; border: none; } body { padding: 15px 20px 0; color: #777; background: #e3e3e3 url(../images/bg_header.gif) repeat-x 0 0; font: 12px "Tahoma", Verdana, Arial, Helvetica, sans-serif; } ul { list-style: none; } input, textarea, select { padding: 5px; background: #fff url(../images/bg_form.gif) repeat-x top left; border: 1px solid #777; font: 12px "Tahoma", Verdana, Arial, Helvetica, sans-serif; } input.check { padding: 0; background: none; border: none; } table { border-collapse: collapse; border-spacing: 0; } a:hover { text-decoration: none; } :focus { outline: none; } #head { margin: 0 auto 15px; width: 950px; height: 55px; } #head img { display: block; float: left; } #head p { float: right; color: #999; font: 11px Verdana, Arial, Helvetica, sans-serif; } #head a { color: #666; } #head span { margin: 0 5px; } #nav { margin: 0 auto; width: 950px; } #nav li { margin-right: 5px; height: 30px; display: inline; float: left; position: relative; background: url(../images/nav_bg_left.gif) no-repeat 0 0; } #nav li span { padding: 5px 13px 0; height: 25px; display: block; background: url(../images/nav_bg_right.gif) no-repeat 100% 0; } #nav li a { color: #666; font-size: 14px; text-decoration: none; } #nav li a:hover { text-decoration: underline; } #nav li a.drop_down { margin-left: 5px; } #nav li.active, #nav li.temp { background-position: 0 -30px; } #nav li.active span, #nav li.temp span { background-position: 100% -30px; } #nav li.active ul, #nav li.temp ul { background: #e3e3e3; } #nav ul { padding: 12px 12px 2px; width: 150px; position: absolute; top: 30px; left: 0; z-index: 2000; background: #ccc; border: 1px solid #666; border-width: 0 1px 1px; } #nav ul li { margin: 0 0 10px; padding-left: 14px; height: auto; display: block; float: none; background: url(../images/icon_arrow.gif) no-repeat 0 4px; } #nav ul li a { font-size: 12px; text-decoration: underline; } #nav ul li a:hover { text-decoration: none; } #col_wrap { margin: 0 auto; padding: 20px; width: 950px; } #col_left { width: 460px; display: inline; float: left; position: relative; } #col_right { width: 460px; display: inline; float: right; position: relative; } .pagelet { margin-bottom: 10px; width: 460px; display: block; } .pagelet_head { padding: 8px 13px 0; width: 434px; height: 22px; position: relative; background: url(../images/bg_pagelet_header.gif) no-repeat 0 0; } .pagelet_head h1 { display: inline; float: left; color: #fff; font-size: 12px; } .pagelet_head_options { display: inline; float: right; } .pagelet_head_options ul { text-align: right; } .pagelet_head_options li { margin-left: 10px; display: inline; float: left; } .pagelet_head_options li a:hover { background-position: 0 -12px; } .pagelet_head_options a.pagelet_drop_down { width: 13px; height: 12px; display: block; background: url(../images/btn_pagelet_drop_down.gif) no-repeat 0 0; } .pagelet_head_options a.pagelet_minimize { width: 13px; height: 12px; display: block; background: url(../images/btn_pagelet_minimize.gif) no-repeat 0 0; } .pagelet_head_options a.pagelet_close { width: 13px; height: 12px; display: block; background: url(../images/btn_pagelet_close.gif) no-repeat 0 0; } .head_red { background-position: 0 0; } .head_orange { background-position: 0 -30px; } .head_yellow { background-position: 0 -60px; } .head_light_green { background-position: 0 -90px; } .head_dark_green { background-position: 0 -120px; } .head_blue { background-position: 0 -150px; } .head_grey { background-position: 0 -180px; } .pagelet_content { width: 458px; height: 200px; background: #fff; border: 1px solid #cdcdcd; border-width: 0 1px 1px; } .pagelet_shadow { display: block; } .clear:after { height: 0; display: block; clear: both; visibility: hidden; content: "."; } Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>test</title> <link rel="stylesheet" type="text/css" media="all" href="css/styles.css" /> <script type="text/javascript" language="javascript" src="js/mootools_1.11.js"></script> <script type="text/javascript" language="javascript" src="js/functions.js"></script> </head> <body> <div id="head" class="clear"> <img src="images/placeholder_logo.gif" alt="Logo" width="447" height="55" /> <p><a href="#" title="Administration">Administration</a><span>|</span><a href="#" title="Settings">Settings</a><span>|</span><a href="#" title="Logout">Logout</a></p> </div> <ul id="nav" class="clear"> <li class="active"> <span><a href="#">Link</a></span> </li> <li> <span><a href="#">Link 2</a><a href="#" class="drop_down"><img src="images/btn_nav_drop_down.gif" alt="More Options" /></a></span> <ul> <li><a href="#">Sub Link</a></li> <li><a href="#">Sub Link</a></li> <li><a href="#">Sub Link</a></li> <li><a href="#">Sub Link</a></li> </ul> </li> <li> <span><a href="#">Link 3</a><a href="#" class="drop_down"><img src="images/btn_nav_drop_down.gif" alt="More Options" /></a></span> <ul> <li><a href="#">Sub Link</a></li> <li><a href="#">Sub Link</a></li> <li><a href="#">Sub Link</a></li> <li><a href="#">Sub Link</a></li> </ul> </li> <li> <span><a href="#">Link 4</a></span> </li> <li> <span><a href="#">Link 5</a></span> </li> </ul> <div id="col_wrap" class="clear"> <div id="col_left"> <div class="pagelet"> <div class="pagelet_head head_red clear"> <h1>Pagelet Title</h1> <div class="pagelet_head_options"> <ul class="clear"> <li><a href="#" title="Display Options" class="pagelet_drop_down"></a></li> <li><a href="#" title="Minimize Pagelet" class="pagelet_minimize"></a></li> <li><a href="#" title="Close Pagelet" class="pagelet_close"></a></li> </ul> </div> </div> <div class="pagelet_content"></div> <img src="images/shadow_pagelet_bottom.gif" alt="Shadow" width="460" height="10" class="pagelet_shadow" /> </div> </div> <div id="col_right"> <div class="pagelet"> <div class="pagelet_head head_red clear"> <h1>Pagelet Title</h1> <div class="pagelet_head_options"> <ul class="clear"> <li><a href="#" title="Display Options" class="pagelet_drop_down"></a></li> <li><a href="#" title="Minimize Pagelet" class="pagelet_minimize"></a></li> <li><a href="#" title="Close Pagelet" class="pagelet_close"></a></li> </ul> </div> </div> <div class="pagelet_content"></div> <img src="images/shadow_pagelet_bottom.gif" alt="Shadow" width="460" height="10" class="pagelet_shadow" /> </div> </div> </div> </body> </html> Similar TutorialsI finally figured out how to add text to my index and now I have another question. In my website template There is Heading 1 and a Heading 2 so my question is how do I delete any sections or headings that I don't need to make it go away on my home page. There is so much and I don't think I need all of it..... Thanks in advance so i want to have my navigation hover over my content, so when i scroll through my content it flows underneath the navigation.. i am putting the navigation div at z-index:3 and the content at z-index:1 but it wont slide beneath.. help pls here's my site: all css is done on the page so u can see it. http://levisternberg.com/joomla16/ hey wondered if anyone could explain how on my website I can get the "index of" to show? eg http://rofl.wheresthebeef.co.uk/ cheers! Here's my problem: I'm a subsciber with GeoCities/Yahoo, and had my html files stored. When I try upload my stuff to a certain forum I get a "File Not Found" msg. By looking around I learned that the problem might be the "index.htm" file, which needs to for each subdirectory separately. An example of such a file: http://www.geocities.com/d48uga/dice_tutorial09.html Could u help? Tnx I've got a drop down menu (#howto) that works fine in every browser but IE7. The issue: when activated, the menu options appear behind the divs below (#wrapper and #branding). I've tried several z-index combinations, but haven't hit upon one that works. With 13% of my user base still on IE7, I'm stressing out! URL: http://wdm.ca/index_new_dwt.htm HTML Code: <!--Start How To Menu--> <div id="howto" style="top: 3em; right: 0em;"> <img alt="" src="imagesindex/down-triangle.gif" style="float:right; margin-top:0.3em; margin-left: 0px; margin-right: 1em;" height="10"/> How to...<br /> <hr width="80%" style="text-align: left;" /> <!-- Start How To drop-down menu --> <a href="membership/index_new.htm">become a member</a> ... <a href="contact_new.htm">contact a <abbr title="Western Development Museum">WDM</abbr></a> <!-- End About drop-down menu --> </div> <!--End How To Menu--> CSS Code: body{ background-image:url('imagesindex/background_attempt_fade.jpg');background-position:left;background-repeat:repeat; font-family: Arial, Helvetica, sans-serif; } /* START topper */ #topper{ height:4.5em; width:50em; margin: 20px auto 0 auto; position:relative; z-index:100; } #topper a.contact{ position:absolute; ... display:block; z-index:100; } /* START howto Menu */ #howto{ width:15em; background-color:#FFF; padding-left:2%; float:right; border:thin gray groove; position:absolute; line-height:1.4em; height:1.4em; overflow:hidden; z-index:100; } #howto:hover { height:auto; cursor:pointer; } #howto a { display:block; width:100%; line-height:1.4em; color:#000; text-decoration:none; } #howto a:visited { display:block; width:100%; line-height:1.4em; color:#000; text-decoration:none; } #howto a:hover { color:#000; background:#ddd; } /* END howto Menu */ /* END topper */ #wrapper{ width: 50em; background-color:white; margin: 5px auto 0 auto; border-color:#98B539; border-style:ridge; border-width:thin; z-index:0; } /* Make branding a positioned element, but don't move it */ #branding{ position:relative; border-bottom:thin #98B539 solid; z-index:0; } Hi there, I was reviewing the web site of the organization I work for and I noticed that some of the html code is included in the following tags: <!--BeginNoIndex--> and <!--EndNoIndex--> Between these tags there's the page title and the site's navigation included. I have been searching on this subject but I can't seem to find the right answers. I would say you would want your page title and navigation to be indexed by search engines. Or in what cases you wouldn't want it to be indexed? The web site is public and serves mainly an informative purpose. I would be happy with anything that could help me, also resources where I can read about it for example. Kind regards! Okay so recently I updated my website so the URL for my home page is now: http://www.benellett.com/index.php However I would either like to somehow make that page show up as just the base website: http://www.benellett.com/ or have the benellett.com page forward to the /index.php page. Preferably I want benellett.com/index.php to be the "home" page like it would be if it were index.html (like my old website in the link). Thanks a lot! I have my main website called index.html, but since i've added php into the code, i've renamed it to index.php. But I also have a forum, which includes another index.php. I'm wanting to have my index.php page to be the page that people see when they come to my website. Is there anyway that it could happen? Do possible somehow open folder/archive were is a index.html. I wan't to run auto index.html or any default .html .php... I want open folder and browse from files. ??? Does anyone know how to use z-index? I would like to know where to use it! Is it in the css file or in the html page? If anyone as any examples that would be great. Thank you Hey everyone. Wanted your opinions and knowledge on something. I have a friend who is setting up a splash page for her site. However the way her hosting company has things set up she will need to rename her current home page from index.html to something else, and make the splash page the new index.html. She's under the impression that if her current home page is renamed to something other than index it will lose significant value in her website's ranking. I've never heard of that. Her meta tags will be kept intact, and the splash page will have meta tags, and will link to both the home page and sitemap so I don't think search engines will have any problem spidering her site. And I don't really think it will affect her ranking. What do you all think? Am I wrong? Hello all. I am currently putting together a flash intro for a friend of mine. He operates a World of Warcraft guild website through DKPSystem.com. While DKPsystem.com does normally use a subdomain for the registered guild, you can implement your own domain through the backend. He has done this. So, here is my problem. What I want to do is create the flash intro and connect it up with a index.html file. Considering that DKPsystem.com uses a structure in which the user cannot upload files via FTP, I have no idea how to implement this flash intro. Any ideas how this would be done? Thanks in advance for all of your help. my flash banner is in front of my drop down menu in IE, so u cant see my drop down menu.... but it works fine in firefox, and safari... http://www.briangelhaus.com/spencer my friend told me to z-index the drop down menu to 1 so its in front of the flash...i tryed that, but im not sure where to put it in the drop down menu, and it still doesnt work, he also told me maybe insert flash in a different way than the default way that dreamweaver gives u. i tried that too, and it doesnt work. any ideas on how to make the flash behind my drop down menu in IE? maybe just use a totally different drop down also? I have a template that I'm trying to customize. It has a left sidebanner div and image. How do I get text to appear on top of the image? By making the image a background-image in CSS? By specifying z-index? Your help is GREATLY appreciated I use a program (Guardian) to send me notifications when an error occurs on my site (404, 403 etc.) These notices contain the URL causing the error and the referring URL. Lately I have been getting numerous notifications with URLs to directories without index files (On a side note, these URLs also contain within them, urls to other sites. I assume this is some spammer technique and I am not too concerned about this in this post but if someone can shed some light on how/why they (the spammers) do this I would appreciate it.) My purpose in posting here is to find out about the use of index files in directories. I have read that this is a good idea, but I have yet to hear why except that in case someone navigates to the URL of the directory rather than the actual page URL, then they will not get a 403 error message, but this seems like a rather weak reason to me. Is there another reason? SEO reason? Technical reason? If I find good reason to do this, is it enough to just put a blank index file in each directory? If so why? What purpose does it serve (aside from thwarting the spammers doing what I described above.) Thanks in advance for your help. Hi, basicly i want a page that looks like this (drawn the best i can using text) |-------------------------------| | | (header, left navigation bar and main page) |___________________ | | | | | | | | | | | | | | | | | | | | | | | | | --------------------------------- Im using the following code to achieve this at the moment Code: <html> <head> <title>Richards Site</title> <META name="verify-v1" content="9u6uX6mdIuBNO6+EWvyS0gCSYP7MNds6lT/wKkizUms=" /> </head> <frameset rows="100,*" cols="*" framespacing="0" frameborder="NO" border="0"> <frame src="top.php" name="topFrame" frameborder="no" scrolling="NO" noresize marginwidth="0" marginheight="0" title="topFrame"> <frameset rows="*" cols="101,*" framespacing="0" frameborder="NO" border="0"> <frame src="navi.php" name="leftFrame" frameborder="no" scrolling="auto" noresize marginwidth="0" marginheight="0" title="nav"> <frame src="main.php" name="mainFrame" title="mainFrame"> </frameset> </frameset> </frameset> <body> </body> </html> is that ok to use? and when i click a link in the navigation bar, the page it goes to appears in the navigation bar. is there any way i can get the page to show up in the main page part? if its any help im using PHP where possible as im learning how to use that thanks you amazing people Edit: the representation of the table looks fine while im looking at it like this, no idea why it all screws up when i save it :S Hi all I have a download page on my site, but whilst my site is currently undergoing a facelift, I want to place all my downloads onto an index page that will simply show a list of all the downloadable files within a certain folder I've seen it on a few sites before. It is just a simple list of all the files....click on one and it will download Does anybody have any ideas on how I do this please? Hello forum, I have a very simple question which I can't solve: My html code looks something like this (in index.html with a directory of 'next/' which has the file index.html: HTML Code: <html><head /><body> <a href="next/">Continue</a> </body></html> Then when the link is clicked, it gets a permission error (meaning the browser can't find anything in the directory). Why is this? Shouldn't it automatically get into the index.html? thanks in advance, drmota for some reason my div containing all the side bar content isn't showing up on my index.html, i don't know whether its because the divs are ordered wrong or the coding is just plain wrong. if you can see what i'm doing wrong please explain index.html coding <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Completely GAGA .com - Your largest source for Lady Gaga</title> <link href="/style.css" rel="stylesheet" type="text/css" /> <meta name="keywords" content='lady gaga, music, just dance, interscope records, cherrytree records, konlive, the fame, Just Dance, Colby O Donis, LoveGame, Paparazzi, Poker Face, Eh Eh, Nothing else i can say, beautiful, dirty, rich, fame, honey money, starstruck, flo rida, boys, boys,boys, paper gansta, brown eyes, fashion, i like it rough, summerboy, disco heaven, retro dance freak, again again, fame ball tour, gaga, fashion, technology, space cowboy, redone, dirty ice cream, rock show, shake ure kitty, wonderful, something crazy, wish you were here, no floods, words, red and blue, pictures, videos, download, mp3, mpg, xxx, perez hilton, full album, zip, hdtv, gallery, lyrics, monster, fame monster, kanye west, fame kills, second time around, vma, moonman, mario testino, v magazine, nude, space cowboy, vogue, out.com, ellen von unwerth, Oliver Rauh, sharon gault, David LaChapelle, live, blood, monster heartbeats by lady gaga, heartbeats, bad romance, beyonce, videophone, telephone, monster, teeth, alejandro, the monster ball, dance in the dark, speechless, So Happy I Could Die, monster ball"> </head> <body> <div style="position:absolute; top: 80px; left:36px"> <div style="width:260px; height:1000px"> <h1>LATEST IMAGES //</h1> <h2>Script will go here</h2> <h1>NAVIGATION //</h1> <h2>navigation links will go here </h2> <h1>ELITE AFFILIATES //</h1> <h2> elite affiliates will go here</h2> <h1>SITE INFORMATION //</h1> <h2>Your Webmistress: <a href="http://fallingthroughinfinity.tumblr.com">Emily</a> </br> Web Host: <a href="http://fanstar.org">Fanstar</a> </br> Designed by: <a href="http://fallingthroughinfinity.tumblr.com">Emily</a> </br> Layout Version: 1.0 </br> Created: 16th June 2010 </h2> <h1>DISCLAIMER //</h1> <h2>Completely - Gaga . COM is in no way officially associated with Stefani Germanotta or Interscope Records. We are not Lady Gaga's official website, and we do not in anyway claim to be able to contact Lady Gaga herself. This is a fan run website, for information on Lady Gaga's latest actions. I am NOT Lady Gaga, nor do I know her. I hope you enjoy the site, your webmistress, Emily. </h2> </div> <div style="position:absolute; top: 0px; left:0px"> <div style="width:800px; height:600px; background-image:url(http://i771.photobucket.com/albums/xx352/fallingthroughinfinity/header2.jpg)"> </div> </body> </html> |