Instead of:
#contentPanel{
visibility:hidden;
}
Try:
#co
display: none;
}
Main Topics
Browse All TopicsHi Experts,
I have a strange problem in IE7.
I have a table generated via javascript when the window loads, the table sits within a div like so (see attached code);-
In CSS, I'm setting border colors on cells like so for example;-
td{border-top:1px solid #7F7F7F;} ..e.t.c
When the page loads, I am setting the visiblity of the container div to visibility hidden:-
#contentPanel{
visibility:hidden;
}
But the problem is that I can see the oulines of the border colors i set for the table though the content isn't visible (see attached image file).
Any ideas...?
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.
Its actually the YUI library i'm using to generate a datatable - http://developer.yahoo.com
The markup and CSS produced looks like the following;-http://develope
Even without making any adjustments to the css styles, the table borders that are defined in CSS are visible when the div container is set to hidden.
I can't really use the display none, as it cuses the panel to lose its centering (The contentPanel div is used by YUI library to display a modal overlay on the page ( a pop-up) that needs to be centered absolutely on the page. If display:none is set, then centering the popup becomes a problem.
Setting border to none will have to be a last resort I think, as there are also two calendar widgets that are giving the same troublem.
Thanks.
Why are you enlcosing a TABLE inside a DIV? If you are using this to style or limit the SIZE and action of the table, you are making a coding mistake. You can use the DIV to POSITION the table, that is fine, but if you are trying to control how the table functions with the DIV, this is where your problem is. REMOVE the DIV around the table, and watch the table work correctly, and the problems disappear. You can STYLE ANY element of a table that you want with CSS, there is no need to use a DIV to try to limit it -- usually doesn't work.
Business Accounts
Answer for Membership
by: brucepietersePosted on 2008-11-03 at 02:30:44ID: 22865826
Hi!
Maybe you should use border: none; until the page has loaded.