View Single Post
Old 03-18-2008, 07:44 PM   #1 (permalink)
freenity
The Acquainted
 
freenity's Avatar
 
Join Date: Feb 2008
Posts: 119
Thanks: 17
freenity is on a distinguished road
Default display:block pushes divs

Hi
I have 2 divs. One div is a wrapper and another one is inside the wrapper and it has display:none.

Then with some javascript I change it to display:block.
Then I have several divs below this hidden div.
The problem is that when this div is displayed the other divs (those that are below it) are pushed down. What should I do to prevent this?

Also if I put this div outside the wrapper it won't be center as the wrapper centers the whole thing.
__________________
http://feudal-times.net - My PBB Game
http://gwphp.feudal-times.net - My Blog "Gaming With PHP"
freenity is offline  
Reply With Quote