Your code has a bunch of errors. I suggest you add a valid doctype to your document eg:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
Then validate your HTML at http://validator.w3.org/ This is a good way to find errors in your code.
OK, for starters, you need to put your <div> within <body> Currently you have
In your <table>, at multiple places you have used <tr> instead of </tr>. Rectfy that error.
Probably you were using IE to test your pages. IE is very forgiving, which is why you couldn't spot much of your errors. If you check with different versions of IE, you'll find your page displayed differently, due to small errors here and there.