---
title: "Überflüssige Zeilen (Leerzeilen) entfernen"
url: "https://www.typo3.net/d/46762-ueberfluessige-zeilen-leerzeilen-entfernen"
source: "typo3.net"
tags: ["Extensions","Frage"]
created: "2006-07-20"
last_reply: "2006-07-21"
replies: 1
solved: false
page: 1
pages: 1
lang: "de"
---

# Überflüssige Zeilen (Leerzeilen) entfernen

Extensions · 1 Antwort · gestartet 2006-07-20

## Eröffnungsbeitrag

**Winteretti** · 2006-07-20 · [Beitrag #2](https://www.typo3.net/d/46762-ueberfluessige-zeilen-leerzeilen-entfernen/2)

Grüß dich

Also ich habe mein news-template so angepasst

```html
<h3>TEMPLATE_LIST</h3>
<em>This is the template for the list of news in the archive or news page or search.</em>
<br />
<br />
<br />
<br />
<!-- ###TEMPLATE_LIST### begin
	This is the template for the list of news in the archive or news page or search
-->
<div class="news-latest-container">
	<!-- ###CONTENT### begin
		  This is the part of the template substituted with the list of news: 
	-->

		<!-- ###NEWS### begin 
			Template for a single item 
		-->
		
		
		
		<div class="news-latest-item">

				<p><b><!--###LINK_ITEM###-->###NEWS_TITLE###<!--###LINK_ITEM###--></b> - ###NEWS_DATE###</p>
				<div style="float:left;">###NEWS_IMAGE###</div><p>###NEWS_SUBHEADER###<strong><!--###LINK_ITEM###--> ###MORE###<!--###LINK_ITEM###--></strong></p><hr class="clearer" /></div>
			  

		<!-- ###NEWS### end-->		
	<!-- ###CONTENT###  end -->
	<div class="news-list-item">###BROWSE_LINKS###</div>
</div>
<!-- ###TEMPLATE_LIST### end -->
```

Ist vielleicht nicht der ganz große Wurf, aber bei mir funktioniert´s unter <http://www.Bernkastel-Wittlich.de>

M;ke

## Antworten

### [#4](https://www.typo3.net/d/46762-ueberfluessige-zeilen-leerzeilen-entfernen/4) · Winteretti · 2006-07-21

Was soll das denn für eine Farbe sein?

In css habe ich die Farben so angelegt:

```html
.irgendeine-klasse {
			color:#212121;
		      }
```

Also nur eine # und dann den sechstelligen Zahlencode.

Ansonsten (bezüglich deines anderen Posts) hier mal mein komplettes News-Template

```html
<!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>
</head>

<body>






<br />
<br />
<br />
<h1>NEWS TEMPLATES</h1>
<h2>EXAMPLE</h2>






<br />
<br />
<br />
<pre><strong>Common markers:</strong>
These are substituted in all news item displaying templates:

<em>Markers:</em>
NEWS_UID - ID number (uid) of the news item
NEWS_TITLE - News item title
NEWS_AUTHOR - name of author
NEWS_EMAIL - email of author
NEWS_DATE - date
NEWS_TIME - time
NEWS_AGE - age of news item in minutes, hours, days or years
NEWS_SUBHEADER - subheader, if empty main content is inserted here in LIST and LATEST
NEWS_CONTENT - main content
NEWS_LINKS - news links
NEWS_CATEGORY - news item category
NEWS_CATEGORY_IMAGE - news item category image
NEWS_RELATED - links to related news
NEWS_IMAGE - news item images

PAGE_UID - Page id of the parent page (pid)
PAGE_TITLE - Title of the parent page of the news item
PAGE_AUTHOR - Page author, if any
PAGE_AUTHOR_EMAIL - Page author email, if any

<em>News Language Markers (see pi/locallang.php):</em>
LATEST_HEADER - header for the LATEST element
GOTOARCHIVE - link to archive page in latest template
ARCHIVE_HEADER - same for AMENU
MORE - more ;-)
TEXT_CAT - text output before categories and category images in LIST view (eg: 'categories:')
TEXT_CAT_LATEST - the same in a shorter form for the LATEST element (eg: 'cat:')
BACK_TO_LIST - link back to list-view in single-view template
ARCHIVE_EMPTY_MSG - no items in archive
SEARCH_EMPTY_MSG - message for empty search results
TEXT_NEWS_AGE - text inserted before the age of the news item 


<em>Wrapped Subparts:</em>
LINK_ITEM - link to the news item single display
LINK_PREV - used in the pagebrowser
BROWSE_LINKS - used in the pagebrowser
LINK_NEXT - used in the pagebrowser
</pre>


<br />
<br />
<br />
<br />
<hr />
<br />
<br />
<br />
<h3>TEMPLATE_LATEST</h3>
<em>This is the template for the latest news, typically displayed on a frontpage.</em>
<br />
<br />
<br />
<br />



<!-- ###TEMPLATE_LATEST### begin
	This is the template for the latest news, typically displayed on a frontpage 
-->
<div class="news-latest-container">
	<!-- ###CONTENT### begin
		  This is the part of the template substituted with the list of news: 
	-->
		<!-- ###NEWS### begin 
			Template for a single item 
		-->
			  <div class="news-latest-item">

				<p><b><!--###LINK_ITEM###-->###NEWS_TITLE###<!--###LINK_ITEM###--></b> - ###NEWS_DATE###</p>
				<div style="float:left;">###NEWS_IMAGE###</div><p>###NEWS_SUBHEADER###<strong><!--###LINK_ITEM###--> ###MORE###<!--###LINK_ITEM###--></strong></p>
				<hr class="clearer" />
			  </div>

		<!-- ###NEWS### end-->		
	<!-- ###CONTENT###  end -->
<p><strong><!--###LINK_ARCHIVE###-->###GOTOARCHIVE###<!--###LINK_ARCHIVE###--></strong></p>
</div>
<!-- ###TEMPLATE_LATEST### end -->





<br />
<br />
<br />
<br />
<hr />
<br />
<br />
<br />
<h3>TEMPLATE_LIST</h3>
<em>This is the template for the list of news in the archive or news page or search.</em>
<br />
<br />
<br />
<br />
<!-- ###TEMPLATE_LIST### begin
	This is the template for the list of news in the archive or news page or search
-->
<div class="news-latest-container">
	<!-- ###CONTENT### begin
		  This is the part of the template substituted with the list of news: 
	-->

		<!-- ###NEWS### begin 
			Template for a single item 
		-->
		
		
		
		<div class="news-latest-item">

				<p><b><!--###LINK_ITEM###-->###NEWS_TITLE###<!--###LINK_ITEM###--></b> - ###NEWS_DATE###</p>
				<div style="float:left;">###NEWS_IMAGE###</div><p>###NEWS_SUBHEADER###<strong><!--###LINK_ITEM###--> ###MORE###<!--###LINK_ITEM###--></strong></p><hr class="clearer" /></div>
			  

		<!-- ###NEWS### end-->		
	<!-- ###CONTENT###  end -->
	<div class="news-list-item">###BROWSE_LINKS###</div>
</div>
<!-- ###TEMPLATE_LIST### end -->







<br />
<br />
<br />
<br />
<hr />
<br />
<br />
<br />
<h3>TEMPLATE_SINGLE</h3>
<em>This subpart is used to display single news items</em><br />
<br />
<br />

<!-- ###TEMPLATE_SINGLE### begin
	This subpart is used to display single news items
-->

<div class="news-single-item">
	
		<h1>###NEWS_TITLE###</h1>
		###NEWS_DATE###<br />
 </div>
		
###NEWS_SUBHEADER###
		###NEWS_IMAGE### 
		
		###NEWS_CONTENT###
		###ADDINFO_WRAP_B###
						  
				  	<h4><br />###TEXT_RELATED###</h4>
				 	###NEWS_RELATED###
			
					<h4><br />###TEXT_FILES###</h4>
				 	###FILE_LINK###				  
				
					<h4><br />###TEXT_LINKS###</h4>
					###NEWS_LINKS###
			
					###TEXT_RELATEDBYCATEGORY###
					###NEWS_RELATEDBYCATEGORY###

			###ADDINFO_WRAP_E###
			###NEWS_SINGLE_PAGEBROWSER###<div class="news-single-item">	
	<!--###LINK_ITEM###-->###BACK_TO_LIST###<!--###LINK_ITEM###--></div>
<!-- ###TEMPLATE_SINGLE### end -->












<br />
<br /><hr />
<br />
<br />
<br />
<h3>TEMPLATE_SINGLE_RECORDINSERT</h3>
<em>This subpart is used to display single news items with the "Insert Records" content element </em><br />
<br />
<br />

<!-- ###TEMPLATE_SINGLE_RECORDINSERT### begin
	This subpart is used to display single news items
-->

<div class="news-single-item">
			<div class="news-single-timedata">###NEWS_DATE### ###TEXT_NEWS_AGE### ###NEWS_AGE###</div>
			<h2>###NEWS_TITLE###</h2>
			###NEWS_AUTHOR###		
			
			
			
			###NEWS_SUBHEADER###
			
			###NEWS_IMAGE### 
			###NEWS_CONTENT###

						###ADDINFO_WRAP_B###
						  
				  	###TEXT_RELATED###
				 	###NEWS_RELATED###
			
					###TEXT_FILES###
				 	###FILE_LINK###				  
				
					###TEXT_LINKS###
					###NEWS_LINKS###

					###TEXT_RELATEDBYCATEGORY###
					###NEWS_RELATEDBYCATEGORY###
			###ADDINFO_WRAP_E###
###COMMENTS###
###NEWS_SINGLE_PAGEBROWSER###
<div class="news-single-backlink">	
<!--###LINK_ITEM###-->###BACK_TO_LIST###<!--###LINK_ITEM###-->
</div>			</div>		
<!-- ###TEMPLATE_SINGLE_RECORDINSERT### end --><br /><hr />
<br />
<br />
<br />
<h3>TEMPLATE_SINGLE_FORUM</h3>
<em>This subpart is used to display single news items with the "Insert Records" content element </em><br />
<br />
<br />

<!-- ###TEMPLATE_SINGLE_FORUM### begin
	This subpart is used to display single news items
-->

<div class="news-single-item">
			<div class="news-single-timedata">###NEWS_DATE### ###TEXT_NEWS_AGE### ###NEWS_AGE###</div>
			<h2>###NEWS_TITLE###</h2>
			###NEWS_AUTHOR###
			
			
			
			###NEWS_SUBHEADER###
			
			###NEWS_IMAGE### 
			###NEWS_CONTENT###

<div class="news-single-backlink">	
<!--###LINK_ITEM###-->###BACK_TO_LIST###<!--###LINK_ITEM###-->
</div>			</div>		
<!-- ###TEMPLATE_SINGLE_FORUM### end -->












<br />
<br />
<br />
<br />
<hr />
<br />
<br />
<br />
<h3>TEMPLATE_ARCHIVE</h3>
<em>Subpart for the news archive menu.</em><br />
<br />
<br />
<!-- ###TEMPLATE_ARCHIVE### begin
	Subpart for the news archive menu 
 -->
<div class="news-amenu-container">
        <ul>
        <!-- ###CONTENT### begin -->
                <!-- ###MENUITEM### begin -->
                <li><!--###LINK_ITEM###-->###ARCHIVE_TITLE###: ###ARCHIVE_COUNT### ###ARCHIVE_ITEMS###<!--###LINK_ITEM###--></li>
                <!-- ###MENUITEM### end-->
        <!-- ###CONTENT###  end -->
        </ul>
</div><!-- ###TEMPLATE_ARCHIVE### end -->


<br />
<br />
<br />
<br />
<hr />
<br />
<br />
<br />
<h3>TEMPLATE_ARCHIVE_NOITEMS</h3>
<em>Shown if the archive has no items!</em><br />
<br />
<br />
<!-- ###TEMPLATE_ARCHIVE_NOITEMS### begin
	Shown if the archive has no items!
-->
<div class="news-amenu-container">
		<h2>###ARCHIVE_HEADER###</h2>
	    <ul>
		<li>###ARCHIVE_EMPTY_MSG###</li>
		</ul>		
</div>
<!-- ###TEMPLATE_ARCHIVE_NOITEMS### end -->






<br />
<br />
<br />
<br />
<hr />
<br />
<br />
<br />
<h3>TEMPLATE_SEARCH</h3>
<em>Subpart for the search-form.</em><br />
<br />
<br />

<!-- ###TEMPLATE_SEARCH### begin
	Subpart for the search-form
-->
<div class="news-search-form">
<form method="post" action="###FORM_URL###">
	<input size="30" maxlength="100" type="text" name="tx_ttnews[swords]" value="###SWORDS###" />
	<span class="news-search-form-submit"><input type="submit" name="search" value="###SEARCH_BUTTON###" /></span>
</form></div>
<!-- ###TEMPLATE_SEARCH### end -->

<br />
<hr /><br />
<h3>
  this is shown if the search result is empty </h3>
  <br />
     
<!-- ###TEMPLATE_SEARCH_EMPTY### begin -->
<div class="news-search-emptyMsg">###SEARCH_EMPTY_MSG###</div> 
<!-- ###TEMPLATE_SEARCH_EMPTY### end -->

<br /><br />
<br />
<hr /><br />
<h3>TEMPLATE_HEADER_LIST</h3>
<em>shows a list of news titles</em><br />

<br />
<!-- ###TEMPLATE_HEADER_LIST### begin -->

	<!-- ###CONTENT### begin
		  This is the part of the template substituted with the list of news: 
	-->
		<!-- ###NEWS### begin 
			Template for a single item 
		-->
			<div class="news-header-list-container">
					<div class="news-header-list-title"> <!--###LINK_ITEM###-->###NEWS_TITLE###<!--###LINK_ITEM###--></div>
					<div class="news-header-list-time"> NEWS_TIME###</div>
					<div class="news-header-list-categories">###NEWS_CATEGORY### ###NEWS_CATEGORY_IMAGE###</div>
					
			</div>

		<!-- ###NEWS### end-->
		
	<!-- ###CONTENT###  end -->
 ###BROWSE_LINKS###

<!-- ###TEMPLATE_HEADER_LIST### end -->
<br /><br />
<br />
<hr /><br />
<h3>TEMPLATE_CAT_RELATED</h3>
<em>shows a list of related news with the same category</em><br />

<br />
<!-- ###TEMPLATE_CAT_RELATED### begin -->
	<!-- ###CONTENT### begin
		  This is the part of the template substituted with the list of news: 
	-->
		<!-- ###NEWS### begin
			Template for a single item 
		-->
		###GW3B###<!--###LINK_ITEM###-->###NEWS_TITLE###<!--###LINK_ITEM###--> ###NEWS_TIME### ###GW3E###
		<!-- ###NEWS### end-->
	<!-- ###CONTENT###  end -->
<!-- ###TEMPLATE_CAT_RELATED### end -->

<br />
<br />
<br />




</body>
</html>
```

und das habe ich noch im css stehen:

```html
/*   #######   tt_news   #######   */	

.news-latest-item p { margin: 0 0 0 0; }
.news-latest-item img { margin: 4 4 0 0; }

.news-list-item p { margin: 0 0 0 0; }
.news-list-item img { margin: 4 4 0 0; }

.news-single-item { font-size: 0.8em; }
.news-single-item li, ul { font-size: 1em; }
.news-single-related {font-size: 0.8em; }

.news-single-related DD, .news-single-links DD, .news-single-files DD {
        margin-left:0px;
}
 
.news-single-related DT, .news-single-links DT, .news-single-files DT {
        font-weight: bold; margin-bottom:5px;
}


.more p { margin: 0 0 0 0; }
```

---

Quelle: „Überflüssige Zeilen (Leerzeilen) entfernen“, typo3.net, https://www.typo3.net/d/46762-ueberfluessige-zeilen-leerzeilen-entfernen
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
