Einzelnen Beitrag anzeigen
  #8 (permalink)  
Alt 03.03.2008, 19:09
Benutzerbild von paracelsus
paracelsus paracelsus ist offline
be simple
XHTMLforum-Kenner
 
Registriert seit: 16.07.2007
Ort: Kapfenberg - Austria, einige meinen am "Anus Mundi"
Beiträge: 4.788
paracelsus ist einfach richtig nettparacelsus ist einfach richtig nettparacelsus ist einfach richtig nettparacelsus ist einfach richtig nett
Standard

eiei
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="language" content="de" /> 
<meta name="robots" content="index,follow" />


<title>Baby-Jen Homepage</title>

<!-- CSS Seiten Layout -->
<style type="text/css">
body {background-color:#000000;}
#body { background-color:#000000; color:white; font-family:arial, helvetica, sans-serif; font-size:75%; line-height:0.5em; }
#header { width:580px; margin: 0 auto; }
#inhalt { width:580px; margin: 0 auto; }
#navigation{ width:150px; margin: 0 auto; color:white; background-color:#000000; font-size:75%; line-height:0.5em; }
#fusszeile { width:580px; color:white; background-color:#000000; font-size:75%; line-height:0.5em; }
</style>

</head>

<body>

body { background-color:black; }

<div id="body" bg-color="black">

<div id="header">
 
    <div align="center">
      <!-- Logo baby-jen.de.vu -->
      <img src="Bilder/baby-jen-logo.jpg" alt="baby-jen Logo" title="baby-jen logo" width="580" height="275" border="0" /></div>
</div>
 
 <div id="inhalt">
 
    <!-- begrüsungstext -->
     

<p>Hope everything is allright</p>
<p>I mean cool</p>
<p>To tell u a lil bit about me</p>
<p>Ive got a rule</p>
<p>"U have to gimme an entry"</p>
<p>aight</p>
<p>So thats all</p>
<p>if u wanna know more</p>
<p>just gimme a call</p>
<p>at my page</p>
<hr align="left" width="500" size="1" />
<p class="Stil1">Hier findet ihr reichlich Stoff von selbstgemachten Videos,</p>
<p class="Stil1">sowie eigene Tracks & Bilder einfach reinziehen.</p>


</div>
<div id="navigation">
<!-- Navigation -->

<p><a href="index.html" title="Startseite" class="navi-link">Home</a></p>
<p><a href="pix.html" title="Bilder" class="navi-link">Pix</a></p>
<p><a href="video.html" title="Video" class="navi-link">Video</a></p>
<p><a href="music.html" title="Music" class="navi-link">Music</a></p>
<p><a href="about-me.html" title="über mich" class="navi-link">About Me</a></p>
<p><a href="g-book.html" title="Gäste Buch" class="navi-link">G-Book</a></p>
<p><a href="links.html" title="Links" class="navi-link">Links</a></p>
</div>

<div id="fusszeile">
<!-- Fußzeile -->

</div>

</div>


</body>
</html>
Das rote schmeiss raus, das blaue schreib dazu.

nenn deinen #body anders, dieser Name ist für ein html Element vorgesehen, geht zwar, aber sollte übersichtlicherweise anders benannt werden, da dieser div ein Bestandteil von body ist.
Html Elemente brauchen kein # vor dem Selector (dem namen)
CSS Anweisungen müssen im head notiert sein, noch besser in enem externen CSS.

Gruß

EDIT:// Du verwendest im Quelltext '&' das soltest DU als &amp; notieren.
Zitat:
The ampersand ("&") is a special character in HTML. It marks the beginning of a entity, like "&nbsp" for a non-breaking space.

In XHTML, a entity must also end with a semicolon (";"). For example "&nbsp;"

Because this is so, any time a literal ampersand appears in a document, it needs to be written as a character entity, "&amp;". Ampersands commonly appear in the query string of a URL, and need to be expressed as an entity there.

Geändert von paracelsus (03.03.2008 um 19:12 Uhr)
Mit Zitat antworten