[thelist] Help with DHTML or Javascript

Tom Dell'Aringa pixelmech at yahoo.com
Sun Nov 24 18:17:01 CST 2002


--- "David U." <davidu at everydns.net> wrote:

> Is there a way to show something (a div) that was previously hidden
> but that
> when shown will kind of reshuffle stuff around it on the page so
> that
> anything under it will be pushed lower on the page?

David,

What you want is to use the display rule. Starting out something
hidden would be:

.hiddenClass
{
display: none;
}

Using your script, setting this object to display: block; will bring
it back into the flow of the page *right where it is in the code*. So
like you say it will shift things about.

I imagine you are currently using a absolutely positioned div and
using visibility, which is not what you want. Don't set a position
for it, and use the display property. You can email me offline for
more help if you wish.

HTH

Tom

=====
var me = tom.pixelmech.webDeveloper();

http://www.pixelmech.com/
http://www.maccaws.com/
[Making A Commercial Case for Adopting Web Standards]

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus – Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com



More information about the thelist mailing list