Hi,
ich möchte den blauen, in der nichtproportionalen Schriftart verfassten Text im Artikel Intel Server Board S5000VSA: Bluescreen während der Installation von Windows Server 2003 layer9. in einer Art Box mit Hintergrundfarbe darstellen (wie etwa das gleich folgende Codebeispiel). Dazu habe ich den Text in folgendes div-Element gewickelt:
div.code {
font:1.1em 'Courier New', Courier, Monospace;
background-color:#FAFAFA;
border-color:#DDDDDD;
border-style:dotted;
border-width:1px;
padding:4px;
}
Das Problem ist, dass der Innenabstand zur Unterseite der Box größer ist, als zu den restlichen Seiten, als Beispiel siehe folgendes Bild: abload.de - Bilderupload Offenbar liegt das daran, dass mir das div-Element noch ein Absatzelement ans Ende der Zeile haut:
<divclass="code">A problem has been detected and Windows has been shut down to prevent damage to your computer.</p>
<p>If this is the first time you’ve seen this Stop error screen, restart your computer. If this screen appears agian, follow these steps:</p>
<p>Check for viruses on your computer. Remove any newly installed hard drives or hard drive controllers. Check your hard drive to make sure it is properly configured and terminated. Run CHKDSK /F to check for hard drive corruption, and then restart your computer.</p>
<p>Technical information:</p>
<p>*** STOP: 0×0000007B (0xF789EA94, 0xC0000034, 0×00000000, 0×00000000)</p></div>
Alles anzeigen
Entferne ich das div-Element nämlich, fehlt das abschließende </p> Tag am Ende der Zeile:
<ul><code>A problem has been detected and Windows has been shut down to prevent damage to your computer.</p>
<p>If this is the first time you’ve seen this Stop error screen, restart your computer. If this screen appears agian, follow these steps:</p>
<p>Check for viruses on your computer. Remove any newly installed hard drives or hard drive controllers. Check your hard drive to make sure it is properly configured and terminated. Run CHKDSK /F to check for hard drive corruption, and then restart your computer.</p>
<p>Technical information:</p>
<p>*** STOP: 0×0000007B (0xF789EA94, 0xC0000034, 0×00000000, 0×00000000)</code></ul>
Alles anzeigen
Hat jemand eine Idee, wie ich die Box mit gleichmäßigen Innenabständen realisieren kann? Sorry übrigens für mögliche Fehler bei meiner Wortwahl, ich habe gerade erst angefangen!
Danke
Starsailor