Witam.
Mam bardzo denerwujący problem. Tworze strone ktora ma Top (baner i menu), Srodek (2 menu po bokach i dokladny srodek na tresc ) i Stopke. Teoretycznie wszystko gra poza tym że stopka nie chce znaleść się na swoim miejscu- znaczy pod Środkiem. Czy ktoś może mi z tym pomóc ?
Kod do HTML i CSS
<?xml version="1.0" encoding="iso-8859-2"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl"> <meta http-equiv="Content-type" content="application/xhtml+xml; charset=iso-8859-2" /> <meta name="Description" content=" [wstaw tu opis strony] " /> <meta name="Keywords" content=" [wstaw tu slowa kluczowe] " /> <meta name="Author" content=" [dane autora] " /> <meta name="Generator" content="kED" />
<link rel="stylesheet" href="style.css" type="text/css" />
<div id="banner" class="top"> <p class="center">Banner
</p> <div id="topmenu" class="top">
<p class="center">skrocone menu
</p>
<div id="menu1" class="menu"> <p class="center"> Menu1
</p> <div id="menu2" class="menu"> <p class="center"> Menu2
</p>
<div id="podstawa" class="podstawa">
<div id="news" class="podstawa"> <p class="center">newsy
</p>
<div id="forum" class="podstawa"> <p class="center">forum
</p>
<div id="czat" class="podstawa"> <p class="center">czat
</p>
<div id="stopka" class="stopka"> <p class="center">stopka
</p>
html, body
{background: #ffffff;
text-align: center;
font-size: 1em;
font-family: verdana, tahoma, arial, helvetica, sans-serif;
}
body *
{margin: 0px;
padding: 0px;
font-size: 1em;
text-align: left;
}
img
{border: 0px;
}
h1
{font-size: 1.4em;
font-weight: bold;
}
h2
{font-size: 1.2em;
}
h3
{font-size: 1em;
font-weight: bold;
}
td
{text-align: left;
vertical-align: top;
background: #ffffff;
}
a
{color: #9a0000;
font-size: 1em;
}
a:visited
{color: #c60000;
}
a:hover
{color: #cb8583;
}
p.center
{
text-align: center;
}
div#top
{
height: 300px;
width: 1024px;
background-color: red ;
position: absolute;
left:auto;
right:auto;
top:auto;
}
div#banner
{
height: 200px;
width: 1024px;
background-color: pink ;
}
div#topmenu
{width: 1024px;
height: 100px;
background-color: gray;
}
div#srodek
{background-color: black;
position: absolute;
left:auto;
right:auto;
top:auto;
bottom:auto;
height:200px;}
div#menu1
{
background-color: yellow;
width:250px;
position: absolute ;
left:0px;
right: 724px;
}
div#podstawa
{
background-color: blue;
width:524px;
position: absolute;
left:250px;
right:250px;
}
div#news
{
width:524px;
}
div#forum
{
width:524px;
}
div#czat
{
width:524px;
}
div#menu2
{
background-color: green ;
width: 250px;
position:absolute;
left:774px;
right:0px;
}
div#stopka
{
height: 100px;
width:1024px;
background-color: orange;
position:relative;
left:auto;
right:auto;
bottom:0px;
}
Z gory dziekuje