---
title: "Vertikale Ausrichtung der Inhalte abhängig von der Textlänge"
url: "https://www.typo3.net/d/6162-vertikale-ausrichtung-der-inhalte-abhaengig-von-der-textlaenge"
source: "typo3.net"
tags: ["Backend","Frage","HTML & CSS"]
created: "2003-10-01"
last_reply: "2003-10-02"
replies: 7
solved: false
page: 1
pages: 1
lang: "de"
---

# Vertikale Ausrichtung der Inhalte abhängig von der Textlänge

Backend · 7 Antworten · gestartet 2003-10-01

## Eröffnungsbeitrag

**tzveti** · 2003-10-01 · [Beitrag #1](https://www.typo3.net/d/6162-vertikale-ausrichtung-der-inhalte-abhaengig-von-der-textlaenge/1)

Hallo an alle! :)

hat vielleicht noch jemand das gleiche problem wie ich? #paralyzed#

wenn ich wenig text (oder text mit bild) auf einer seite habe, erscheint dieser ziemlich in der mitte?!
wenn man mehr text einfügt, verschiebt sich alles nach oben, wie es auch sein soll.
also die vertikale ausrichtung der inhalte hängt von der länge der texte ab.
das kann man bestimmt ändern oder?  im template oder im constant editor?

danke für jede hilfe!

gruß

## Antworten

### [#2](https://www.typo3.net/d/6162-vertikale-ausrichtung-der-inhalte-abhaengig-von-der-textlaenge/2) · bnai · 2003-10-02

Also ich weiß nicht ob ich dein Problem richtig verstanden habe. Ich denke das in deinem HTML-Template die Seite als Tabelle, nicht Frames, deklariert ist. Wenn dem so ist, füge in der Spalte wo der content steht ein "valign=top" ein.

quasi:

```html
<td valign="top"> ###content### </td>
```

### [#3](https://www.typo3.net/d/6162-vertikale-ausrichtung-der-inhalte-abhaengig-von-der-textlaenge/3) · tzveti · 2003-10-02

hi!
mein content ist in tabelle und valign=top habe ich auch drin? :(
trotzdem habe ich das problem immer noch????

gruß

### [#4](https://www.typo3.net/d/6162-vertikale-ausrichtung-der-inhalte-abhaengig-von-der-textlaenge/4) · bnai · 2003-10-02

hm, kann normalerweise nicht sein... kannst du mal dein HTML-Tamplate posten?

### [#5](https://www.typo3.net/d/6162-vertikale-ausrichtung-der-inhalte-abhaengig-von-der-textlaenge/5) · tzveti · 2003-10-02

hi,
das ist mein html-template, das ich im typoscript template einbine:

```html
<html>
<head>
<title>Typo3Template</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
###DOKUMENT###
<table width="800px" border="0" cellspacing="0" cellpadding="0">
   <tr class="menuelink" > 
      <td rowspan="2" width="220" height="500"  valign="top" align="left">
      <table bgcolor="#00146D"  width=100% border=0 cellspacing="0" cellpadding="0">      

      <tr>
         <td width=100% bgcolor="#00146D" valign="center" align="right"> 
               <p> <br>          
                 <a href="http://querfurt.istec.de:81/testsite-3.3.0/index.php?id=281" target="_self">
                     Home
                 </a>
                 <a href="http://querfurt.istec.de:81/testsite-3.3.0/index.php?id=335" target="_blank">
                     Mail
                 </a>
                 <a href="http://querfurt.istec.de:81/testsite-3.3.0/index.php?id=332" target="_blank">
                     Sitemap
                 </a>
                 <a href="http://querfurt.istec.de:81/testsite-3.3.0/index.php?id=334" target="_blank">
                     Suche&nbsp;
                 </a>
               </p>   
         </td>
      </tr>

      <tr>
         <td valign="top" align="left">###MENUE###</td>
      </tr>
  
      <tr><td>&nbsp;</td></tr>
      <tr><td>&nbsp;</td></tr>
      <tr><td>&nbsp;</td></tr>

       <tr>
         <td valign="top"> 
            <a href="http://querfurt.istec.de:81/testsite-3.3.0/index.php?id=331" target="_self">
               <p>              
                 &nbsp;&nbsp;&nbsp;ISTEC GmbH<br>
                 &nbsp;&nbsp;&nbsp;Ettlingen - Stuttgart
               </p>
            </a>
            <tr><td>&nbsp;</td></tr>

         </td>
      </tr>

      </table>
      </td>
      <td width="*" align="right" valign="top"><img src="fileadmin/istec_bilder/istec.gif"></td>
   </tr>
   <tr class="contentlink" > 
      <td width="*">
         <table width="100%" border="0" cellspacing="0" cellpadding="35">
            <tr>
               <td valign="top">###INHALT###</td>
            </tr>
         </table>
      </td>
   </tr>
</table>
###DOKUMENT###
</body>
</html>
```

### [#6](https://www.typo3.net/d/6162-vertikale-ausrichtung-der-inhalte-abhaengig-von-der-textlaenge/6) · bnai · 2003-10-02

versuchs mal so:

```html
<html> 
<head> 
<title>Typo3Template</title> 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 
</head> 

<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> 
###DOKUMENT### 
<table width="800px" border="0" cellspacing="0" cellpadding="0"> 
   <tr class="menuelink" > 
      <td rowspan="2" width="220" height="500"  valign="top" align="left"> 
      <table bgcolor="#00146D"  width=100% border=0 cellspacing="0" cellpadding="0">      

      <tr> 
         <td width=100% bgcolor="#00146D" valign="center" align="right"> 
               <p> <br>          
                 <a href="http://querfurt.istec.de:81/testsite-3.3.0/index.php?id=281" target="_self"> 
                     Home 
                 </a> 
                 <a href="http://querfurt.istec.de:81/testsite-3.3.0/index.php?id=335" target="_blank"> 
                     Mail 
                 </a> 
                 <a href="http://querfurt.istec.de:81/testsite-3.3.0/index.php?id=332" target="_blank"> 
                     Sitemap 
                 </a> 
                 <a href="http://querfurt.istec.de:81/testsite-3.3.0/index.php?id=334" target="_blank"> 
                     Suche&nbsp; 
                 </a> 
               </p>    
         </td> 
      </tr> 

      <tr> 
         <td valign="top" align="left">###MENUE###</td> 
      </tr> 
  
      <tr><td>&nbsp;</td></tr> 
      <tr><td>&nbsp;</td></tr> 
      <tr><td>&nbsp;</td></tr> 

       <tr> 
         <td valign="top"> 
            <a href="http://querfurt.istec.de:81/testsite-3.3.0/index.php?id=331" target="_self"> 
               <p>              
                 &nbsp;&nbsp;&nbsp;ISTEC GmbH<br> 
                 &nbsp;&nbsp;&nbsp;Ettlingen - Stuttgart 
               </p> 
            </a> 
            <tr><td>&nbsp;</td></tr> 

         </td> 
      </tr> 

      </table> 
      </td> 
      <td width="*" align="right" valign="top"><img src="fileadmin/istec_bilder/istec.gif"></td> 
   </tr> 
   <tr class="contentlink" > 
      <td width="*" valign="top"> 
         <table width="100%" border="0" cellspacing="0" cellpadding="35"> 
            <tr> 
               <td valign="top">###INHALT###</td> 
            </tr> 
         </table> 
      </td> 
   </tr> 
</table> 
###DOKUMENT### 
</body> 
</html>
```

### [#7](https://www.typo3.net/d/6162-vertikale-ausrichtung-der-inhalte-abhaengig-von-der-textlaenge/7) · tzveti · 2003-10-02

sorry, aber ich sehe gerade nicht was hast du genau geändert?

### [#8](https://www.typo3.net/d/6162-vertikale-ausrichtung-der-inhalte-abhaengig-von-der-textlaenge/8) · tzveti · 2003-10-02

jetzt habe ich es!

ja wohl, es sieht auf jeden fall besser aus!
 :) danke dir

---

Quelle: „Vertikale Ausrichtung der Inhalte abhängig von der Textlänge“, typo3.net, https://www.typo3.net/d/6162-vertikale-ausrichtung-der-inhalte-abhaengig-von-der-textlaenge
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
