I want to create a paging page using that a page have a 3 DIV, that can switch each other, the height of DIV is auto defined by the DIV Contain.
i test using position:absolute, it make other text falling behind the DIV, so i think it don't a good idea.
is there someone know how to do that ?
thanks,
How do you mean that "divs can switch eachother"?
Your question is not really clear, could you explain it a bit better, and maybe give us a piece of code to work with?
Greetz,
Arno
sorry for the uncleary before,
i meant there is 2 tag div.
these 2 tag div can switch to behind and front each other.
how to do this thing with out using set position:absolute ?
Thanks,
i dont know if I understood your question clearly.
If it is what i think, you should define a background so the divs do not overlap. Or is it a porblem in your code that doesnt let it work?
Hope I helped!
If you don't want "position: absolute", you can place the two divs after each other on the page, and use "display: block" and "display: none" to make one visible and the other not. The "display" attribute will make the element not take up any space in addition to hiding it, so if you make the upper element "display: none", the lower element will move up to take its place.
| Kaneda wrote: |
| If you don't want "position: absolute", you can place the two divs after each other on the page, and use "display: block" and "display: none" to make one visible and the other not. The "display" attribute will make the element not take up any space in addition to hiding it, so if you make the upper element "display: none", the lower element will move up to take its place. |
thanks this tip was worked for me very much, 