• Jetzt anmelden. Es dauert nur 2 Minuten und ist kostenlos!

Problem

lordriedener

Neues Mitglied
index.php
PHP:
<!doctype html>
<html>
<head>
<?php include "html/head.html"; ?>
</head>
<body>
<div id="navi">
<?php include "html/navigation.html"; ?>
</div>
<?php include "seiten/home.html"; ?>
</body>
</html>
html/head.html
HTML:
<title><?php include "infos/titel.txt"; ?></title>
<link href="images/favicon.ico" rel="icon" type="image/x-icon" />
<link href="css/style.css" type="text/css" rel="stylesheet" />
infos/titel.txt
Code:
Titel
css/style.css
Code:
body {
background: blue;
}
#navi {
   width:200px;                   /* Breite des Bereichs */
   text-align:left;               /* Textausrichtung     */
   margin-top:10px;               /* Außenabstand oben   */
   margin-bottom:10px;            /* Außenabstand unten  */
   margin-left:20px;              /* Außenabstand links  */
   margin-right:15px;             /* Außenabstand rechts */
 }
 
 #navi ul {
   list-style:none;               /* keine Aufzählungspunkte */
 }
 
 #navi li {
   background-color:silver;       /* Hintergrundfarbe   */
   border-top:1px black solid;    /* Rahmenfarbe Auflistungpunkt oben */
   border-left:25px orange solid; /* Rahmenfarbe Auflistungpunkt oben */
   border-bottom:1px red solid;   /* Rahmenfarbe unten  */
   border-right:2px blue solid;   /* Rahmenfarbe unten  */
   margin-top:10px;               /* Außenabstand oben  */
   padding-top:8px;               /* Innenabstand oben  */
   padding-bottom:8px;            /* Innenabstand unten */
   padding-left:8px;              /* Innenabstand unten */
   padding-right:8px;             /* Innenabstand unten */
 }
html/navigation.html
HTML:
<a href="seite1.php">Seite 1</a>
<a href="seite2.php">Seite 2</a>
<a href="seite3.php">Seite 3</a>
seiten/home.html
HTML:
<h1>Titel</h1></br>
<p>Text1</p></br>
<p>Text2</p></br>
<p>Text3</p>
***********************************
Also die gesammte Seite funktioniert(XAMPP), ausser der Navigatio, was ist falsch? unterstützt php kein css??
 
Kein Wunder. Schau dir mal den HTML-Code an der da von den PHP-Seiten generiert wird. Dir wird auffallen, dass dort steht

Code:
<div id="navi">
<a href="seite1.php">Seite 1</a>
<a href="seite2.php">Seite 2</a>
<a href="seite3.php">Seite 3</a>
</div>

Dein CSS-Code für #navi betrifft aber nur <li>'s. Fällt dir was auf?
 
Zurück
Oben