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 December 25th, 2004, 02:25 PM
Authorized User
 
Join Date: Sep 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default Urgent. Placing table on top of drop down

In a html page on Internet Explorer, I want to place a table on top of a html select. I have made the position style property of the table absolute and z-index 2000. z-index of select is 0. Still the select is displaying on top of the table. Please give me a solution.

 
Old December 28th, 2004, 09:50 AM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

A <select> element is a control, controls are always painted last when the browser renders a page (at least this is the case with IE). There is nothing you can do about the <select> element rising above your <table>, that is not without some javascript. Assuming that the <table> is only visible some of the time (hence why you would have it above a <select> element in the first place), you want to make the <select> element invisible while the <table> is visible by doing:

document.getElementById('select element's ID').style.visibility = 'hidden';

Then add that to the event that makes the <table> appear over the <select> element.

You may have to actually place style='visibility: visible;' on the <select> element, lest IE complain that style is undefined. Don't recall whether that's necessary or not at the moment.

HTH!


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 January 4th, 2005, 02:05 PM
Authorized User
 
Join Date: Sep 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have solved the problem with iframe.
<iframe style="...."></iframe>
<table>
...
</table>
Then in javascript making the size and position of iframe same as the table.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Placing Table in a Header or Footer sunny227 XSLT 13 March 12th, 2008 02:41 AM
Placing a Primary Key in Another Table When Adding DavidWE Access VBA 1 August 10th, 2006 12:46 PM
show div over top of selects (drop downs) crmpicco Javascript How-To 10 February 14th, 2006 05:48 AM
Displaying drop down menus on the top of Combo box karunkumar_g Javascript 3 December 14th, 2005 01:46 PM
Placing a computed sum in a table field cuzintone SQL Language 1 April 15th, 2005 05:02 AM





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