Jump to content

Displays incorrectly in IE but not firefox


jeff5656

Recommended Posts

Can someone tell me why this link:

http://www.hfhpulm.com/schedules/staffcallcurrent.php

 

the date (left hand column) does not match up in Internet Explorer but it correctly matches up in firefox??  How on earth am I supposed to debug that if it works perfectly in firefox?  Any help would be appreciated (the css isin the same htm, so the code is a bit long I apologize for that).  I'm not sure if this is a css issue, as I know IE is pretty bad when it comes to CSS.

Link to comment
Share on other sites

I just started to break your HTML down to more readable sense and found you've made LOADS of HTML errors with your table.

 

In places you're starting to define a table without closing the previous table first.

 

Even when using <th></th> you still need to surround your TH cells with <tr>

<tr><th>Cell 1</th><th>Cell 2</th><th>Cell 3</th></tr>

 

Same goes for your <td></td> - surround each row with <tr> and </tr>

 

Before you start defining a new table you need to close the previous one first. I counted 11 or 12 <table> definitions and only 9 or 10 </table> tags.

 

Note also that if one line spills over to another line this can throw the lot out of line (eg. "El-Sayed" line breaks on IE but not on FF) so make sure your cells are wide enough or you use CSS to turn off word wrap.

Link to comment
Share on other sites

  • 2 weeks later...

Use the W3 HTML Validation to hunt down some HTML errors you may have made.

 

http://validator.w3.org/check?uri=http%3A%2F%2Fwww.hfhpulm.com%2Fschedules%2Fstaffcallcurrent.php&charset=%28detect+automatically%29&doctype=Inline&group=0

 

Switch from applying styles directly to each line of a table and just use css. :S  Makes for easier reading of the code and will save you time in the future if you want to change the look of it.  Change it from one place?? or 2..3..4..50.

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.