> I know this is possible when working with absolute position, but can't do this 'cause the height is variable of both
Sorry, I didn't read that far! :-) That's the problem with looking at P2P posts when first waking up.
It can be done with positioning, methinks, The problem that you're encountering, no doubt, is overlapping the two elements in certain conditions. In which case some Javascript might be necessary, at least for IE, and maybe even for all browsers.
Do you have a link to the project?? This would help us better see what you're up against and help us to make better suggestions.
Regards,
Rich
--
[
http://www.smilingsouls.net]
Mail_IMAP: A PHP/C-Client/PEAR solution for webmail
Author: Beginning CSS: Cascading Style Sheets For Web Design