TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   XHTML, HTML, CSS (http://www.talkphp.com/xhtml-html-css/)
-   -   display:block pushes divs (http://www.talkphp.com/xhtml-html-css/2488-display-block-pushes-divs.html)

freenity 03-18-2008 07:44 PM

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.

freenity 03-18-2008 09:13 PM

never mind :)
Just had to put that invisible div into a subwrapper with position: absolute. Worked fine :)


All times are GMT. The time now is 04:40 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0