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
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...
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.