neda sa mi pripojit na ic.cz, tak pridavam provizorny kod stranok. Co mam urobit, aby sa to cele zarovnalo na stred? :/
config.php:
<?php
$ext = "phtml";
$default = "uvod.$ext";
?>
index.php
<?php
include("config.php");
$page = $_GET['page'];
?>
<!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" xml:lang="en" lang="en">
<head>
<title>nazov</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="style.css" media="screen" />
</head>
<body>
<div id="all">
<div id="header">
</div>
<div id="menu">
<h2 class="hide">Menu:</h2>
<ul>
<li><a href="?page=uvod">ÚVOD</a></li>
<li><a href="?page=kontakt">KONTAKT</a></li>
</ul>
</div>
<div id="text">
<?
if ($page!="") {
if (eregi("^[a-zA_Z0-9]*$", $page)) {
if (file_exists("$page.$ext"))
include("$page.$ext");
else
include("404.$ext");
}
else
include("404.$ext");
}
else
include($default);
?>
</div>
<div id="footer">
<p></p>
</div>
</div>
</body>
</html>
uvod.phtml
text
style.css
body {
padding: 0;
background: #fdfdfd;
width: 900px;
text-align: center;
}
#all {
text-align: left;
margin: 0 auto;
}
#header {
float: left;
margin: 10px 0 0 0;
padding: 0;
height: 72px;
width: 940px;
text-align: left;
}
#footer {
width: 900px;
height: 80px;
margin: 0 auto;
padding: 0 0 0 0;
border-top: 1px solid #dedede;
font-family: Arial, Helvetica, sans-serif;
}
#footer p {
margin: 0;
padding-top: 20px;
line-height: normal;
color: #a0a0a0;
}
#menu {
float: left;
width: 220px;
margin: 0 0 0 0;
padding: 0;
font-size: 13px;
}
#menu ul {
color: #dadada;
font-weight: 550;
list-style: none;
width: 215px;
margin: 0 0 0 0;
padding: 0;
font-size: 1.5em;
font-weight: bold;
}
#text {
margin: 0 0 0 0;
min-height: 550px;
max-height: 2000px;
padding: 0 10px 10px 10px;
color: #494040;
visibility: visible;
width: 705px;
float: right;
}