Hallo zusammen!
Dies ist also mein erstes Thema hier. Also das Problem wird vielleicht deutlich, wenn man sich das angehängte jpg ansieht.
Ich möchte unter dem Headerbereich direkt das Menü und den Inhaltsbereich haben. Das klappte auch so lange, bis ich die beiden Fahnen eingebaut habe. Kann jemand spontan den Fehler erkennen? Ich noch ziemlich am Anfang, was CSS betrifft und kann mir jetzt einfach nicht erklären, wie ich das lösen soll.
Ich hab den Bereich, der die Probleme macht mal schwarz eingerahmt...
Hier vielleicht mal den Code meiner index.php
PHP-Code:
<!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" xml:lang="de" lang="de">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Gestüt Ganschow</title>
<link href="styles.css" rel="stylesheet" type="text/css" media="all" />
</head>
<body>
<div id="gesamt">
<div id="head_navi">
<span id="head_fahne">
<a href="#"><img src="grafik/de.jpg"></a>
<a href="#"><img src="grafik/en.jpg"></a>
</span>
<span id="tech">
<ul>
<a href="#"><li style="border:none">Impressum</li></a>
<a href="#"><li>Kontakt</li></a>
<a href="#"><li>Preise & Leistungen</li></a>
<a href="#"><li>Stutenparade</li></a>
<a href="#"><li>Home</li></a>
<ul>
</span>
</div>
<br style="clear:both;">
<div id="links">
<div id="auge">
<img src="grafik/auge.jpg" />
</div>
<ul class="menu">
<li><a href="#">News</a></li>
<li><a href="#">Das Gestüt</a></li>
<li><a href="#">Deckhengste</a></li>
<li><a href="#">Verkaufspferde</a></li>
<li><a href="#">Touristik</a></li>
<li><a href="#">Veranstaltungen</a></li>
<li><a href="#">Impressionen</a></li>
<li><a href="#">Links</a></li>
</ul>
</div>
<div id="main">
test main
</div>
<div id="rechts">
test rechts
</div>
<br style="clear:both" />
<div id="footer">
© 2009 Gestüt Ganschow - Alle Rechte vorbehalten
</div>
</div>
</body>
</html>
und hier die css:
Code:
/*--------------------------- CSS RESET ------------------------------------------
--------------------------------------------------------------------------------------*/
*{
padding:0;
margin:0;
font-size:100%;
font-weight:normal;}
ul,ol{
list-style:none;}
b,strong {
font-weight:bold;}
img,a img {
border:none;}
/*--------------------------- SCHRIFT / GRÖSSE--------------------------------
--------------------------------------------------------------------------------------*/
body {
font-family:arial;
font-size:76%;
color:#000000;
background-color:#FFFFFF;
line-height:1.5em;
text-align:left;
background-image:url('grafik/background.jpg');
background-repeat:repeat-x;}
a:link,a:visited {
color:#000000;
text-decoration:none;}
a:hover{
color:#FF0000;
text-decoration:underline;}
#gesamt {
margin:0px auto;
background-image:url('grafik/banner.jpg');
background-repeat:no-repeat;
width:1024px;
height:768px;
border:solid 1px #ffffff;}
#links {
background:#ffffcc;
width:193px;
min-height:500px;
height:500px;
height:auto;
margin-top:2px;
float:left;
display:inline;}
#auge {
width:193px;
height:82px;}
.menu li{
border-top:solid 1px #94bf94;
border-bottom:solid 1px #94bf94;
border-left:solid 8px #94bf94;
border-right:solid 1px #94bf94;
height:31px;
width:184px;
margin-bottom:2px;
margin-top:0px;}
.menu a {
background-image:url('grafik/button_normal.jpg');
font-family:arial;
color:#94bf94;
text-decoration:none;
font-size:14px;
font-weight:bold;
display:block;
padding-left:30px;
padding-top:6px;
height:25px;}
.menu a:hover{
background-image:url('grafik/button_hover.jpg');}
#main {
margin-top:2px;
width:633px;
float:left;}
#tech ul li{
float:right;
margin-right:10px;
display:inline;
font-weight:bold;
border-right:solid 1px #000000;
padding-right:6px;}
#rechts {
background:#ffffcc;
margin-top:2px;
width:193px;
float:right;
min-height:500px;
height:500px;
height:auto;}
#head_navi {
height:20px;
margin-top:140px;
border:solid 1px #000000;}
#head_fahne {
float:left;
margin-left:10px;}
#footer {
background-image:url('grafik/footer.jpg');
width:1024px;
height:23px;
margin-top:6px;
padding-top:7px;
text-align:center;}
Ich hoffe, ihr könnt mir helfen...
Grüße
Frank