Javascript CSS changes not reflected in .net server controls

I have an ASP .NET application (3.5 framework).  I am using an UpdatePanel for a partial page refresh.  Inside this UpdatePanel, I have several server side controls (i.e. <asp:label runat="server"...).  I have a javascript function that changes the style.display setting on divs between none and block.  This creates an accordian effect with the stacked divs.  The problem is that when a div expands or contracts based on changing the display setting, the server side controls in other divs do not change their position on the screen.  I.E. section 2 contracts, the server controls in section 3 stay at the same position on the screen instead of moving up.

I need to have these server side controls move along with the rest of the information in the divs.

Any help is appreciated.
Sym73Asked:
Who is Participating?
 
Qaiser_Mehmood_MughalConnect With a Mentor Commented:
But you should give them the position reletive.
0
 
Qaiser_Mehmood_MughalCommented:
Try to use the relevant  position of the divs, dont use the absolute positioning.
this will solve ur problem.
0
 
Sym73Author Commented:
The divs are not being absolutely positioned.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.