view http://www.eveo.org
Download site for easy modification:
http://www.eveo.org/backup/eveo.rar
http://www.eveo.org/backup/eveo.zip
As you can see right now, it is centered horizontally and vertically using a simple table method:
<table cellpadding="0" cellspacing="0"> <tr> <td align="left"> *put anything in here and it will be aligned horizontally and vertically </td> </tr> </table> accompanying CSS: table { height: 100%; width: 100%; vertical-align: middle; }
However, in my document I did not install doctype, I only have:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
If I add a standard doctype, for example, the following:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
my table method is no longer valid and does not work. So I need a new way to centralize my web page vertically and horizontally regardless of the size of the browser window.
source share