Jump to content

The Dreaded IE7 - Page display probs


bladechob

Recommended Posts

Hi, I've got a couple of sites where the the index pages have gone slightly skew whiff when viewed by IE7. It seems to occur around the login sections which are set up as this:
[code]<div id="login" style="position:relative; width:240px; height:72px; z-index:1; left: 483px; top: -8px; align:left">
        <?php if(empty($_SESSION['loggedIn'])){?>
        <form name="form1" action="<?php echo $_SERVER['PHP_SELF'].'?'.$_SERVER['QUERY_STRING']; ?>" method="POST">
          <table>
            <tr>
              <td class="none">LOGIN:&nbsp; </td>
              <td><div align="left" class="none">Username:</div></td>
              <td><div align="left" class="none">
                  <input type="text" name="username" value="">
                </div></td>
              <td></td>
            </tr>
            <tr>
              <td><a href="http://www.iwanttostay.com"><img src="images/uk.jpg" alt="English language version" width="34" height="25" border="0" /></a><br />
                <br /> <a href="http://www.iwanttostay.com/indexf.php"><img src="images/france.jpg" alt="French language version" width="34" height="25" border="0" /></a>
                <br /> </td>
              <td><div align="left" class="none">Password:</div></td>
              <td><div align="left" class="none">
                  <input type="password" name="password" value="">
                  <br>
                  <b>[ <a href="javascript:openW('https://www.cimnet.co.uk/iwant/lostpass.php','lp','width=540,height=360,scrollbars=yes')">Lost
                  password?</a> ]</b>
                  <input type="hidden" name="login" value="r">
                </div></td>
              <td><input type="submit" name="submit" value="login"></td>
            </tr>
            <tr>
              <td colspan="4"><font color="#cc0000"><b><?php echo $login_msg ?></b></font></td>
            </tr>
          </table>
        </form>
        <?php }else{ ?>
        <p>Welcome, <b><?php echo $_SESSION['firstname'] . " " . $_SESSION['surname'] ?></b>.<br>
          Go ahead and make a booking.</p>
        <p>[ <a href="<?php echo $_SERVER['PHP_SELF'].'?content=home&logout=true';?>"><b>Logout</b></a>
          ]</p>
        <?php } ?>
      </div>[/code]
Link to comment
https://forums.phpfreaks.com/topic/28323-the-dreaded-ie7-page-display-probs/
Share on other sites

Thanks. The code is working it is just that certain elements on the page - like the login get 'buried' beneath other links; I thought it might have something to do with footers or headers and their relative positioning. Been playing around with it but getting nowhere fast...

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.