View Full Version : Margins lost when adjacent div display and height changed

05-09-2011, 05:10 PM
I have the following problem in IE. My page has several divs whose style is changed via javacript on the onclick event. It works pretty well, but I sometimes lose the div margins when adjacent divs are resized. Here is the page:


To reproduce the problem do this:

1. Select a county from the drop down list (Butler is a good one)
2. Click on a marker in the map

The "Map Description" div shrinks, and the "Permit Detail" box should expand. However I lose the margins between the sections until another markers is clicked, and then they reappear. That only happens after initial page load when the first marker click. After that it is fine. Any suggestions?

Thanks very much in advance!