Probleme beim laden des Hintergrundes

Slin61

Mitglied
Ich rufe meine Seite per include-Befehl auf und dadurch habe ich kein Hinteregrund mehr. Kann mir jemand sagen, wie ich den Hintergrund trotzdem noch haben kann?
Hier mein Code:
Code:
<style type="text/css">
.lp_item {
  background-image: url(litem.png);

  background-repeat: no-repeat;
  width: 855px;
  height: 115px;
}
.lp_pic {
  text-align: left;
  margin-left: 50px;
}
.lp_text {
  font-size: 30px;
  text-shadow: #ffffff 1px 1px ;
  color: #333333;
}
.lp_item:hover {
  background-image: url(hover.png);
}
.lp_item:hover td.lp_text {
  color: #ff6600;
  text-shadow: #ff0000 1px 1px ;
}
.lp_item:hover img.lp_pic {
  opacity: 0.5;
}

</style>
Hier der Code der Seite:

PHP:
echo "<table class=\"lp_item\">
     <tbody>
            <tr>
                  <td>
                         <img class=\"lp_pic\" src=\"$row->thumb\">
                  </td>
                    <td class=\"lp_text\">
                    ".$titel."
                    </td>
            </tr>
     </tbody>
</table>";
Und hier der Code des include-Scripts:
PHP:
<?php
include(datei.php);  //^^
?>

PS: Wenn ich die Seite als einzelnes aufrufe erscheint das Hintergrundbild
 
Zurück