Jump to content

Overlapping Div's


The Little Guy

Recommended Posts

I am making custom drop down menu's, and when the div is expanded, everything moves all weird. So the best I could come up with so it doesn't happen is to absolutely position them.

 

Here is an example of two within a table. The one on the right is the year/month/day, but the month and day are hidden behind the year drop down.

post-42401-13482403464998_thumb.png

Link to comment
https://forums.phpfreaks.com/topic/261519-overlapping-divs/#findComment-1340321
Share on other sites

With a situation like this, you are just going to have to tweak the widths and the position until it works well for you.

 

Absolutely positioned elements have no awareness of where any other elements are located (with the exception of their relative parent), so if you are going to absolutely position them, you just need to do it all manually.

Link to comment
https://forums.phpfreaks.com/topic/261519-overlapping-divs/#findComment-1340322
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.