Forum: Ruby on Rails CSS question: div cover another div on AJAX

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
7595ff5e64d9a309c29932d106959973?d=identicon&s=25 Human Dunnil (Guest)
on 2006-02-04 22:07
(Received via mailing list)
Hi,
I have a simple question, how to prevent a div to be covered by another
div?!?
When I use AJAX the footer div of my page cover the rendered div, how
should I prevent it?
I used both: position:fixed; and the position:relative;
The first cover some text from the bottom of page and the other does
not work always.

Thanks in advance,
- H
81f1ef9f260d20fbb4ff60b3a2a6f541?d=identicon&s=25 Peter (Guest)
on 2006-02-05 15:28
Just use 'z-index:20;' for example in youre stylesheet for the div.
The higher the number the closer the object is to you on the screen.

So z-index:100; floats over every object as long as you don't have a
higher index.

Hope this helps.
This topic is locked and can not be replied to.