Bei mir ist beim includieren das Problem aufgetreten, das sich zwischen dem:
include_once 'menu.php'
und dem
include_once '$content'
immer wieder ein freier Absatz reinschmuggelt. Im HTML-Code ist kein Fehler und wenn man nach dem Stylesheet geht existiert dieser Leere raum in keinem div.
Der Fehler tritt nur auf 2 von 3 Seiten auf (der serien und der Kontakt seite) allerdings wenn ich den Inhalt der serien/Kontakt seite 1:1 auf die Startseite kopiere tritt der Fehler auf der Startseite NICHT auf.
So das sollte im großen und ganzen mein Problem beschreiben, wenn noch Fragen auftreten denn bin ich wohl oder übel auch noch die ganze Nacht hier erreichbar^^
Hier die index.php, menu.html und die serien.php:
Index.php
PHP-Quellcode
- <?php
- // Var Includes
- include_once "functions.php";
- include_once "vars.php";
- include_once "head.php";
- include_once "menu.php";
- // Content Kontrolle ANFANG
- if (isset($_GET['site']))
- {
- $site = $_GET['site'];
- if (strlen($site) != 0)
- {
- switch($site)
- {
- case "home":
- $content = "home.php";
- break;
- case "serien":
- $content = "serien.php";
- break;
- case "kontakt":
- $content = "kontakt.php";
- break;
- default:
- $content = "home.php";
- break;
- }
- }
- }
- else
- {
- $content = "home.php";
- }
- // Content Kontrolle ENDE
- include_once "$content";
- include_once "footer.php";
- ?>
menu.html
HTML-Quellcode
- <div id="head">
- <h1><a href="index.php?site=home"><img class="logo" src="http://www.freesoft-board.to/images/logo.png" alt="AnimeLiner" width="976" /></a></h1>
- <div id="navigation">
- <ul>
- <li>
- <dl>
- <dt><a href="index.php?site=home">Animeliste</a></dt>
- </dl>
- </li>
- <li>
- <dl>
- <dt><a href="index.php?site=serien">Animeliste</a></dt>
- <dd><a href="animeliste-a.html">A-B-C-D</a></dd>
- <dd><a href="animeliste-e.html">E-F-G-H</a></dd>
- <dd><a href="animeliste-i.html">I-J-K-L</a></dd>
- <dd><a href="animeliste-m.html">M-N-O-P</a></dd>
- <dd><a href="animeliste-q.html">Q-R-S-T</a></dd>
- <dd><a href="animeliste-u.html">U-V-W-X</a></dd>
- <dd><a href="animeliste-y.html">Y-Z</a></dd>
- </dl>
- </li>
- <li>
- <dl>
- <dt><a href="index.php?site=kontakt">Kontakt</a><dt>
- </dl>
- </li>
- </ul>
- </div>
- </div>
serien.php
PHP-Quellcode
Unter der Navi seht ihr diesen lästigen kleinen Streifen^^.
Imageshack - boooese.jpg
Grüße
FeuerFront
Edit:
default.css
Brainfuck-Quellcode
- @charset "utf-8";
- /**
- * Animeliste von TriEdge alias Simon.B
- *
- * @link http://www.animeliner.de.vu
- * @version 1.0
- */
- /**
- * Globale Einstellungen
- *
- * @section Browser-Reset
- */
- /* Zuruecksetzen der Innen- und Außenabstnde */
- * {
- margin: 0;
- padding: 0;
- }
- /**
- * Schriftgre kontrollieren
- */
- body, td, th { font: normal 80%/170% Verdana, Palatino, "Times New Roman", serif; }
- td, th { f\ont-size: 100.01%; }
- /**
- * Links
- */
- a {
- text-decoration: none;
- }
- img {
- border: 0;
- }
- a:link {
- color: #5c0606;
- background-color: transparent;
- }
- a:active {
- color: #c81111;
- background-color: transparent;
- }
- a:hover, a:focus {
- color: #c81111;
- background-color: transparent;
- }
- a:visited {
- color: #999;
- background-color: transparent;
- }
- /*------------------------------------------------------------------------------------------------------*/
- /* Hauptblock */
- html, body {
- color: #000000;
- background-color: #ebebeb;
- text-align: center;
- }
- body {
- width: 1136px;
- height: 100%;
- margin: 0 auto;
- position: relative;
- }
- /* Linker und Rechter Rand */
- #leftborder {
- position: absolute;
- width: 80px;
- height: 100%;
- top: 0px;
- left: 0px;
- background: url('images/leftborder.gif') repeat-y scroll center bottom #000000;
- }
- #rightborder {
- position: absolute;
- height: 100%;
- width: 80px;
- top: 0px;
- right: 0px;
- background: url('images/rightborder.gif') repeat-y scroll center bottom #000000;
- }
- /* Head */
- #head {
- width: 976px;
- height: 240px;
- margin: 0px auto;
- }
- #head h1 {
- text-align: center;
- }
- /* Navigation */
- #navigation {
- width: 976px;
- height: 40px;
- display: block;
- background-color: #000000;
- background-image: url(images/nav_bg.gif);
- background-repeat: repeat-x;
- }
- #navigation ul {
- margin-left: 340px;
- position: absolute;
- }
- #navigation ul li {
- list-style: none;
- float: left;
- }
- #navigation ul li dd {
- display: none;
- }
- #navigation li:hover dd {
- height: 40px;
- width: 100px;
- display: block;
- background-color: #2792ff;
- }
- #navigation dd a:hover {
- background: #1fb2bf url(images/nav_bg_hover.gif);
- }
- #navigation ul li a,
- #navigation ul li strong {
- vertical-align: middle;
- color: #352545;
- display: block;
- width: 100px;
- text-decoration: none;
- font-weight: bold;
- line-height: 40px;
- }
- #navigation ul li a:hover {
- background: #1fb2bf url(images/nav_bg_hover.gif);
- }
- /* Logo */
- .logo {
- height: 200px;
- width: 976px;
- display: block;
- }
- /* Content */
- #content {
- width: 976px;
- height: 690px;
- margin: 0 auto;
- background-color: #fdf6de;
- display: block;
- }
- #content h1 {
- padding: 30px 0 0 0;
- }
- /* Kontakt */
- #kontakt {
- width: 700px;
- margin: 0 auto;
- }
- #kontakt table {
- border-collapse: collapse;
- margin: 0 auto;
- }
- #kontakt th,
- #kontakt td {
- color: #5e2021;
- }
- /* Animeliste */
- #animeliste h2 {
- color: #000000;
- border-color: black;
- border-width: 2px;
- border-style: solid;
- }
- #animeliste {
- width: 100%;
- margin: 0 auto;
- text-align: center;
- }
- #animeliste td {
- width: 200px;
- }
- /* Footer */
- #footer {
- width: 976px;
- height: 40px;
- margin: 0 auto;
- background-image: url(images/foot_bg.gif);
- background-repeat: repeat-x;
- }
- #footer p.copyright {
- display: inline-block;
- font-weight: bold;
- line-height: 40px;
- margin-right: 740px;
- }
- #footer p.impressum {
- display: inline-block;
- font-weight: bold;
- }
- /* Sonstiges */
- input[type='text'], [type='radio'] {
- border: 1px solid #cbb8ba;
- margin: 0.5em 0;
- padding: 5px 25px;
- }
- input[type='submit'] {
- padding: 0 0 0px 0;
- margin: 0 0 15px 0;
- background-color: white;
- }
- input[type='radio'] {
- vertical-align: middle;
- margin-right: 4px;
- }
- textarea {
- border: 1px solid #cbb8ba;
- margin: 1em 0;
- padding: 5px 15px;
- }
- label {
- padding-right: 5px;
- }
- legend {
- font-weight: bold;
- font-size: 1.4em;
- padding: 10px 10px;
- }
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von FeuerFront () aus folgendem Grund: Zur sicherheit lege ich die .css datei bei