AndreD: HILFE:...Dringend. ABstand innerhalb eines Rahmens

Beitrag lesen

<table>
  <tr>
    <td><h2>Sonnet---Solution for 6.3</h2>

[1] ->»»       <h1 class="Sonnet">

Look in thy glass and tell the face thou viewest<br>
        Now is the time that face should form another;<br>
        Whose fresh repair if now thou not renewest,<br>
        Thou dost beguile the world, unbless some mother.<br>
        For where is she so fair whose unear'd womb<br>
        Disdains the tillage of thy husbandry?<br>
        Or who is he so fond will be the tomb,<br>
        Of his self-love to stop posterity?<br>
        Thou art thy mother's glass and she in thee<br>
        Calls back the lovely April of her prime;<br>
        So thou through windows of thine age shalt see,<br>
        Despite of wrinkles this thy golden time.<br>
        But if thou live, remember'd not to be,<br>
        Die single and thine image! dies with thee.<p></p>
      </h1>
 </td>
  </tr>
</table>

[2] ->»» Wie kann man den nun ziwschen dem oberen Rahmen der Tabelle und dem <h2> einen Abstand von 20 px erzeugen?

[1] Nimm hier besser ein <p>-Element, <h1> ist eine Überschrift erster Ordnung, sollte somit auch logischerweise vor <h2> stehen!

[2] a) füge noch eine Tabrow mit einem Leer-Gif mit der Höhe 20px ein, oder b) (besser) definiere halt für Deine <h2> einen margin-top von 20px

Gruss AndreD