21-09-2009, 20:18
Kod:
p
{
margin:0 0 0 0;
}
ul
{
margin:0 0 0 0;
}
body
{
font-family: "Segoe UI", "Trebuchet MS";
color: green;
background:black;
margin:0;
}
div#wrapper
{
background:teal;
width:60%;
height:100%;
margin:0 auto;
}
div#header
{
margin:0 auto;
background:yellow;
height:200px;
}
div#menu
{
margin:0 auto;
background:red;
width:10%;
float:left;
}
div#footer
{
background:white;
}
div#content
{
margin:0 auto;
background:navy;
height:100%;
width:70%;
float:left;
}
Kod:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="mystyle.css" type="text/css">
<title>Drink Team</title>
</head>
<body>
<div id="wrapper">
<div id="header">
<p style="text-align:center">Here goes HEADER</p>
</div>
<div id="menu">
<p>Here goes menu et dsasflasf s;ldfksd;lfks flksd;flk s;dkf
</div>
<div id="content">
<p>Here goes content
</div>
</div> <!-- wrapper-->
</body>
</html>
Chce, zeby content byl wysrodkowany a menu do niego przylegalo