MaDmiX
07-27-2012, 08:56 PM
Hi All,
This is a strange one and I am having some trouble figuring out what is causing this. I have a form that is conditionally hidden with some PHP code, although I don't think my issue PHP related:
<form <?php if (isset($_SESSION['MM_Username'])) { echo "style='display: none'"; }else{ echo "style='display: block'";}?> class="login" action="<?php echo $loginFormAction; ?>" method="POST" name="frmLogin" id="frmLogin" >
Some of my pages do not have this form and if the form is hidden on my page and I move to a page that doesn't have the form, the elements beneath it all shift up about 1 line. AFAIK style='display: none' should effectively render as if the form were not there, right?
This only happens in IE. Safari and Firefox behave as expected with all of the elements staying in the same place. Also, in IE compatibiity mode the issue goes away.
If anyone can help me figure out why this happens please help. The only way I can avoid this in IE is to copy the form to all of my pages (which it is not needed in some).
Thanks in advance for any help.
Kind regards,
Ken
This is a strange one and I am having some trouble figuring out what is causing this. I have a form that is conditionally hidden with some PHP code, although I don't think my issue PHP related:
<form <?php if (isset($_SESSION['MM_Username'])) { echo "style='display: none'"; }else{ echo "style='display: block'";}?> class="login" action="<?php echo $loginFormAction; ?>" method="POST" name="frmLogin" id="frmLogin" >
Some of my pages do not have this form and if the form is hidden on my page and I move to a page that doesn't have the form, the elements beneath it all shift up about 1 line. AFAIK style='display: none' should effectively render as if the form were not there, right?
This only happens in IE. Safari and Firefox behave as expected with all of the elements staying in the same place. Also, in IE compatibiity mode the issue goes away.
If anyone can help me figure out why this happens please help. The only way I can avoid this in IE is to copy the form to all of my pages (which it is not needed in some).
Thanks in advance for any help.
Kind regards,
Ken