Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > CSS > CSS Cascading Style Sheets
|
CSS Cascading Style Sheets All issues relating to Cascading Style Sheets (CSS).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the CSS Cascading Style Sheets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 20th, 2005, 05:07 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default z-index problem with select showing through div

I have a problem with the code below,
when i mouseover a image I have to hide to <select> 'title1' and then show the DIV that pops-up.

What happens is that due to the rendering order of the DOM the select shows through the div, but is there any way
to NOT hide the <select> and just show the <div>. Setting some kind of order of rendering?
This is my code setup:
(the image mouseover is not shown to keep the code down)
Code:
<style>

.demo {color:#000000; border-color:#666666; background-color:<%=minirules%>; font-family:Verdana, Arial, Helvetica, sans-serif; font-weight:bold;
layer-background-color:#cccccc; position:absolute; bottom:0px; height:100px; visibility:hidden; z-index:5; border-color:#FFFFFF; border:inherit;}
.demo_t {font-family:Verdana; font-size:9px; color:#000000;    border:1; border-color:#000000;}

</style>

<select name="title1" class="font4">
    <option value="Mr">Mr</option>
      <option value="Mrs">Mrs</option>
      <option value="Miss">Miss</option>
      <option value="Mstr">Mstr</option>
      <option value="Ms">Ms</option>
</select>

<div id="demodiv" class="demo" style="width: 755px">
<table id="demodiv_t_Main" border="1" bordercolor="<%=brdColDark%>" width="100%" height="100" summary="The Mini-Rules DIV hidden or shown onMouseOver of 'VIEW RULES'">  
<tr class="head2fnt" bordercolor="<%=brdColDark%>" height="10%">
<td colspan="2" nowrap lang="en">
    <table width="100%" id="demodiv_SpecialInfo" class="head2fnt" summary="The Special Information row (if applicable)">
    <tr class="head2fnt"></tr>
    </table>
</td>
</tr>
<tr id="MinMaxStayTable">
    <td nowrap lang="en" width="60%" id="piccolax" valign="top">
        <table id="demodiv_t" width="100%" class="demo_t" summary="List of Mini Rules for this contract">
        <tr valign="top"><td valign="top" class="border_bottom" nowrap><b>FARE RULES</b></td></tr>
        </table> 
    </td>
    <td nowrap lang="en" width="40%" id="crmpicco" valign="top">
        <table id="demodiv_t_MinMax" class="demo_t" width="100%" border="0" summary="List of Min/Max Stays for this contract">
        <tr valign="top"><td valign="top" class="border_bottom" nowrap><b>MIN/MAX STAY</b></td></tr>
        </table>
    </td>
</tr>
</table> 
</div>


www.crmpicco.co.uk
__________________
_______________________
Ayrshire Minis - a Mini E-Community
http://www.ayrshireminis.com
http://www.crmpicco.co.uk
 
Old November 10th, 2005, 07:43 PM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

Sorry picco, this is a bug in IE and there's no known work-around besides the one you mentioned. This bug's reportedly fixed in the upcoming IE7, you can read more about all the improvements in IE7 in the IE team blog. (don't forget to read the archives)

http://blogs.msdn.com/ie/

Regards,
Rich

--
[http://www.smilingsouls.net]
Mail_IMAP: A PHP/C-Client/PEAR solution for webmail
Author: Beginning CSS: Cascading Style Sheets For Web Design
 
Old September 28th, 2006, 07:15 PM
Registered User
 
Join Date: Mar 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Fortunatelly, iframes exist. iframes obscure anything below them!

[email protected]
 
Old July 4th, 2008, 07:00 AM
Registered User
 
Join Date: Jul 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

You might want to try the Select Fix which corrects this bug :
http://www.fabien-molinet.fr/index.p...&id=8&Itemid=9






Similar Threads
Thread Thread Starter Forum Replies Last Post
Set Div ID value = ttip_<xsl:value-of select='@nam ismailc XSLT 4 January 16th, 2008 05:04 AM
Select 'DIV' ?? Frankb52258 SQL Server 2005 3 February 9th, 2007 01:06 PM
LI showing thru div henwolf CSS Cascading Style Sheets 11 March 24th, 2006 01:52 AM
Select Box: Pass Literal instead of Index WebDevel Javascript How-To 5 September 12th, 2005 11:42 AM
windowed object select shows through div crmpicco HTML Code Clinic 1 August 17th, 2005 01:50 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.