---
title: "Abstände innerhalb eines TMenu"
url: "https://www.typo3.net/d/12095-abstaende-innerhalb-eines-tmenu"
source: "typo3.net"
tags: ["TYPO3","Menüs","Frage"]
created: "2004-06-03"
last_reply: "2004-06-08"
replies: 1
solved: false
page: 1
pages: 1
lang: "de"
---

# Abstände innerhalb eines TMenu

TYPO3 › Menüs · 1 Antwort · gestartet 2004-06-03

## Eröffnungsbeitrag

**ben** · 2004-06-03 · [Beitrag #1](https://www.typo3.net/d/12095-abstaende-innerhalb-eines-tmenu/1)

Ich bekomme meine Abstände nicht kleiner, egal was ich mache!  o.O

Mein Setup (nur Teil des Menus um welches es geht):

```typoscript
_MENU1 = HMENU
_MENU1.entryLevel = 0
_MENU1.1 = TMENU
_MENU1.1.wrap = <table cellspacing="0" cellpadding="0" border="1"><tr height="20"><td><font color="#b8b9c8"><b>-----------------------</b></font> | </td></tr></table>

_MENU1.1.NO {
allwrap = <tr height="20"><td height="20"><b>|</b></td></tr> 
linkWrap = <tr height="20"><td height="20"> | </td></tr><tr height="20"><td height="20"><font color="#b8b9c8"><b>-----------------------</b></font></td></tr>
ATagParams=class="no"
}

_MENU1.1.ACT < .NO
_MENU1.1.ACT = 1 
_MENU1.1.ACT {
allwrap = <tr height="20"><td height="20"><b>|</b></td></tr>
linkWrap = <tr height="20"><td height="20"> | </td></tr><tr height="20"><td height="20"><font color="#b8b9c8"><b>-----------------------</b></font></td></tr>
ATagParams=class="actcur"
}

_MENU1.1.CUR < .ACT
_MENU1.1.CUR = 1 
_MENU1.1.CUR {
allwrap = <tr height="20"><td height="20"><b>|</b></td></tr>
linkWrap = <tr height="20"><td height="20"> | </td></tr><tr height="20"><td height="20"><font color="#b8b9c8"><b>-----------------------</b></font></td></tr>
ATagParams=class="actcur"
}
```

Entsprechender Stylesheet-Bereich:

```css
A.actcur:link {
text-decoration: none; 
font-size: 10px; 
line-height: 10px;
font-family: Arial; 
font-style: none; 
font-weight: bold; 
color: white;
}

A.actcur:visited {
text-decoration: none; 
font-size: 10px; 
line-height: 10px;
font-family: Arial; 
font-style: none; 
font-weight: bold; 
color: white;
}

A.actcur:active {
text-decoration: none; 
font-size: 10px; 
line-height: 10px;
font-family: Arial; 
font-style: none; 
font-weight: bold; 
color: white;
}

A.actcur:hover {
text-decoration: none; 
font-size: 10px;
line-height: 10px;
font-family: Arial; 
font-style: none; 
font-weight: bold; 
color: white;
}


A.no:link {
text-decoration: none; 
font-size: 10px; 
line-height: 10px;
font-family: Arial; 
font-style: none; 
font-weight: bold; 
color: #b8b9c8;
}

A.no:visited {
text-decoration: none; 
font-size: 10px; 
line-height: 10px;
font-family: Arial; 
font-style: none; 
font-weight: bold; 
color: #b8b9c8;
}

A.no:active {
text-decoration: none; 
font-size: 10px; 
line-height: 10px;
font-family: Arial; 
font-style: none; 
font-weight: bold; 
color: white;
}

A.no:hover {
text-decoration: none; 
font-size: 10px; 
line-height: 10px;
font-family: Arial; 
font-style: none; 
font-weight: bold; 
color: white;
}
```

Link zur Page:
<http://www.tsgreutlingen.de/index.php?id=52>

Ok, nun zum Problem:
Der Abstand auf der linken Seite zwischen den Links und den -------- ist einfach zu groß!
Ich hab in der Tabelle schon

```typoscript
cellspacing="0" und cellpadding="0"
```

eingetragen.
Habe auch versucht die Höhe der einzelnen <tr> Bereiche zu ändern (ohne Erfolg). Selbst bei height="20" (Ich weiss dass es nun noch Größere Abstände geben müsste) ändert sich der Abstand nicht.
Habe auch versucht im Stylesheet durch

```plaintext
font-size: 10px; 
line-height: 10px;
```

die Höhe der Zeile zu verkleinern. Brachte jedoch auch keine Veränderung...

Hat mir jemand nen Tip?!

Gruß, Ben

## Antworten

### [#2](https://www.typo3.net/d/12095-abstaende-innerhalb-eines-tmenu/2) · ben · 2004-06-08

Ok, habe das Problem soweit gelöst:

```typoscript
_MENU1.1.NO { 
allwrap = <tr height="20"><td height="20"><b>|</b></td></tr> 
linkWrap = <tr height="20"><td height="20"> | </td></tr><tr height="20"><td height="20"><font color="#b8b9c8"><b>-----------------------</b></font></td></tr> 
ATagParams=class="no"
```

ich habe hier ebenfalls noch eine Tabelle drum herum gelegt und cellspacing & cellpadding auf 0 gestellt.
Desweiteren habe ich die "----" mit schriftgröße 1 gemacht, was ebenfalls das ganze noch ein wenig zusammenschiebt.

evtl braucht es jemand anderes auch irgendwann mal

---

Quelle: „Abstände innerhalb eines TMenu“, typo3.net, https://www.typo3.net/d/12095-abstaende-innerhalb-eines-tmenu
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
