Can someone tell me why would my webpage look different in google chrome compared to Internet Explorer? I build my web page with Notepad++ and tested in IE.
For some reason i opened Google Chrome and the top part of my page is left aligned instead of center as specified in the code.
Here is the top part of my page:
Language: HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><metahttp-equiv="Content-Type"content="text/html; charset=utf-8"/><title>INDEX</title></head><bodybgcolor="black"><tablewidth="100%"height="20"cellspacing="0"cellpadding="0"align="center" > // Main Table with image
<tralign="center"><imgsrc="images/main_image.gif" ></tr></table><tableborder="1"width="800"height="100%"align="center"bgcolor="#99FF99"><trvalign="top"><td><tableborder="0"align="center"cellpadding="0"cellspacing="0"class="navigation_size"><trclass="navigation"><td><imgsrc="images/seperator_gr.png"width="19"height="30"></td><td><spanclass="style20"><ahref="index.html">Login</a></span></td><td><imgsrc="images/seperator_gr.png"width="19"height="30"></td><td><spanclass="style20"><ahref="register.php">Register</a></span></td><td><imgsrc="images/seperator_gr.png"width="19"height="30"></td><td><spanclass="style20"><ahref="insert.php">Insert</a></span></td><td><imgsrc="images/seperator_gr.png"width="19"height="30"></td><td><spanclass="style20"><ahref="list_user.php">List Users</a></span></td><td><imgsrc="images/seperator_gr.png"width="19"height="30"></td><td><spanclass="style20"><ahref="list_products.php">List Products</a></span></td><td><imgsrc="images/seperator_gr.png"width="19"height="30"></td><td><spanclass="style20"><ahref="logout.php">Logout</a></span></td><td><imgsrc="images/seperator_gr.png"width="19"height="30"></td></tr></table>
I use a style to center my site. Simply surround what you want to center with div tags. Allocate a CSS class to the div e.g. class="center". The class will then look a bit like this:
Hi Mac, I was given supplementary for this year, should I use the email address that I used last year? if you have you havee changed it please notify me.