Comments are available to members only. Sign up or Log in to view these comments.
Main Topics
Browse All TopicsUsing: IE 6.x
Hi,
I have a couple of DIV tags that start out with a visibility of "hidden". The problem is that they are hidden but they are creating unwanted whitespace in the page layout. Let me explain as briefly as possible using a simpler example:
Imagine an HTML table with a DIV tag below it. After the DIV tag is some text:
-----------
| |
-----------
<Div>
Text
I start the page with the DIV tag set to visibility:hidden. However, since the DIV tag content is about 100px high, there is white space between the table and the Text! When I make the DIV tag appear, it fits nicely in the space that's been allocated to it.
The problem is that I'm using absolute positioning to bring the DIV tag's content into the table. Thus, when I show it, it correctly appears in the table--but the white-space it created between the table and the text is still there!
I have tried all sorts of combinations of placing the DIV tag in a row within the table and then setting the height of the table to "0"--and all sorts of other ideas, to no avail.
Just so you know, all I'm trying to do is to have a table cell into which I can hide/show various content, depending on what selections are made above in the web page. Thus, if a user clicks the otpion button that says "order form" then some fields will appear; if they choose "rebate form", other fields would appear, etc. It is a dynamic form that is rendered using Javascript and CSS.
Any ideas would be most appreciated.
Thanks!
-- Jon500
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: GertonePosted on 2005-11-09 at 07:42:18ID: 15256969
Comments are available to members only. Sign up or Log in to view these comments.