You are here: Cannot centre page in firefox browser ( it works in Internet Explorer ) « HTML « IT news, forums, messages
Cannot centre page in firefox browser ( it works in Internet Explorer )

Posted by Bundy on 11/19/06 22:53

Hi

I cannot centre the following page in firefox browser. It does work in
internet explorer.

CSS (in external file - testcssglobal.css)

body {
text-align: center;
margin: 0px;
padding: 0px;

}

#global {
position: relative;
width: 800px;
text-align: left;
}

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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>testing css</title>
<link href="css/testcssglobal.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div id="global">
<table width="800" border="10">
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>

</div>
</body>
</html>

Your help will be appreciated.

Regards

Bundy

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация