---
title: "HTML Template läßt sich nicht ausrichten"
url: "https://www.typo3.net/d/20495-html-template-laesst-sich-nicht-ausrichten"
source: "typo3.net"
tags: ["TYPO3","TypoScript","Frage","HTML & CSS"]
created: "2005-01-26"
last_reply: "2005-01-27"
replies: 3
solved: false
page: 1
pages: 1
lang: "de"
---

# HTML Template läßt sich nicht ausrichten

TYPO3 › TypoScript · 3 Antworten · gestartet 2005-01-26

## Eröffnungsbeitrag

**CokeLightMan** · 2005-01-26 · [Beitrag #1](https://www.typo3.net/d/20495-html-template-laesst-sich-nicht-ausrichten/1)

Hallo Zusammen... habe untenstehendes HTML-Template gebastelt... funktioniert ganz gut nur leider ist es nicht wie gewünscht oben links ausgerichtet! Ich habe
einen kleinen Spalt oben und links! Wenn ich die Template datei im Browser öffne siehst sie aber so aus wie sie soll?

```typoscript
<html>
<HEAD>
	
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1" />				

<link rel="STYLESHEET" href="fileadmin/usa/template/css/style.css" type="text/css">
	
</HEAD>

	<body bgcolor="#053552" background="fileadmin/usa/template/images/2ndlvl_bk.jpg"
		leftmargin="0" topmargin="0" marginwidth="0"
		marginheight="0" bgproperties="fixed"> 
		<!-- ###DOKUMENT### begin -->
		<table valign="top" width="100%" border="0" cellpadding="0" cellspacing="0">
			<tr>
				<td height="31" bgcolor="#000000">
					<p align="left">
					<font size="2" color="#FFFFFF" face="Arial">###MENU1###</font></td>
				<td width="431" height="31" bgcolor="#000000">
					<p align="right"><font color="#000000">###LOGO###</font></td>
			</tr>
		</table>
		<table border="0" width="100%" cellpadding="0" cellspacing="0">
			<tr>
				<td valign="top" align=left rowspan="2"><font color="#FFFFFF" size="2" face="Arial">
				###MENU2###</font></td>
				<td width="16">&nbsp;</td>
				
    <td valign="top" width="970"> <font face="Arial" size="2" color="#FFFFFF">
	###TITLE###</font><font face="Arial, Helvetica, sans-serif" size="2"><hr noshade color="909090">
						<font face="Arial,Helvetica,sans-serif" color="#FFFFFF">
	###CONTENT###</font></font></td>
			</tr>
			<tr>
				<td width="16"><font color="#000000">
                <img src="images/spacer.gif" width="14" height="1" alt="" border="0"></font></td>
				
    <td valign="top" width="970"> 
	<font face="Arial, Helvetica, sans-serif" size="2"><hr noshade color="909090">
						<font face="Arial,Helvetica,sans-serif" color="#FFFFFF">
	###UPDATE###</font></font></td>
			</tr>
			</table>
		
<!-- ###DOKUMENT### end -->
</body>
</html>
```

Hab ich was falsch gemacht? ODer vielleicht im TS-TEmplate...?

Danke für eure Hilfe!
Stefan

## Antworten

### [#2](https://www.typo3.net/d/20495-html-template-laesst-sich-nicht-ausrichten/2) · CokeLightMan · 2005-01-26

```typoscript
<html>
<HEAD>
	
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1" />				

<link rel="STYLESHEET" href="fileadmin/usa/template/css/style.css" type="text/css">
	
</HEAD>

	<body bgcolor="#053552" background="fileadmin/usa/template/images/2ndlvl_bk.jpg"
		leftmargin="0" topmargin="0" marginwidth="0"
		marginheight="0" bgproperties="fixed"> 
		<!-- ###DOKUMENT### begin -->
		<table valign="top" width="100%" border="0" cellpadding="0" cellspacing="0">
			<tr>
				<td height="31" bgcolor="#000000">
					<p align="left">
					<font size="2" color="#FFFFFF" face="Arial">###MENU1###</font></td>
				<td width="431" height="31" bgcolor="#000000">
					<p align="right"><font color="#000000">###LOGO###</font></td>
			</tr>
		</table>
		<table border="0" width="100%" cellpadding="0" cellspacing="0">
			<tr>
				<td valign="top" align=left rowspan="2"><font color="#FFFFFF" size="2" face="Arial">
				###MENU2###</font></td>
				<td width="16">&nbsp;</td>
				
    <td valign="top" width="970"> <font face="Arial" size="2" color="#FFFFFF">
	###TITLE###</font><font face="Arial, Helvetica, sans-serif" size="2"><hr noshade color="909090">
						<font face="Arial,Helvetica,sans-serif" color="#FFFFFF">
	###CONTENT###</font></font></td>
			</tr>
			<tr>
				<td width="16"><font color="#000000">
                <img src="images/spacer.gif" width="14" height="1" alt="" border="0"></font></td>
				
    <td valign="top" width="970"> 
	<font face="Arial, Helvetica, sans-serif" size="2"><hr noshade color="909090">
						<font face="Arial,Helvetica,sans-serif" color="#FFFFFF">
	###UPDATE###</font></font></td>
			</tr>
			</table>
		
<!-- ###DOKUMENT### end -->
</body>
</html>
```

### [#3](https://www.typo3.net/d/20495-html-template-laesst-sich-nicht-ausrichten/3) · CokeLightMan · 2005-01-27

Hallo.... wie peinlich...

habs schon gefunden:

<!-- ###DOCUMENT_BODY### -->
gehört vor den BODY TAG!!!

Trotzdem danke!

### [#4](https://www.typo3.net/d/20495-html-template-laesst-sich-nicht-ausrichten/4) · LineMan · 2005-01-27

nicht wirklich... aber macht ja nix ;-) wenns klappt  #paralyzed#

---

Quelle: „HTML Template läßt sich nicht ausrichten“, typo3.net, https://www.typo3.net/d/20495-html-template-laesst-sich-nicht-ausrichten
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
