---
title: "Typo3-Page mit CSS Menü/Navigation - Darstellungsfehler im Safari"
url: "https://www.typo3.net/d/98311-typo3-page-mit-css-menuenavigation-darstellungsfehler-im-safari"
source: "typo3.net"
tags: ["TYPO3","Menüs","Frage","HTML & CSS"]
created: "2010-04-20"
last_reply: "2010-04-20"
replies: 2
solved: false
page: 1
pages: 1
lang: "de"
---

# Typo3-Page mit CSS Menü/Navigation - Darstellungsfehler im Safari

TYPO3 › Menüs · 2 Antworten · gestartet 2010-04-20

## Eröffnungsbeitrag

**angsch-li** · 2010-04-20 · [Beitrag #1](https://www.typo3.net/d/98311-typo3-page-mit-css-menuenavigation-darstellungsfehler-im-safari/1)

Hallo Zusammen

Ich habe ein kleines Problem und finde und finde einfach keine Lösung.

Meine Webseite ist mit HTML gelöst in Typo3 - jedoch das Menü ist im CSS definiert.

Im Firefox wird alles top angezeigt (Bild 2) hingegen im Safari (Bild 3) ist der Text auf den Menübalken nach unten verschoben und der Rollover Effekt geht auch nicht über di eganze Höhe.

Woran liegt das? Wie kann ich das fixen?

Anbei Bilder und mein CSS und TS. Der Link dazu: <http://www.wild-pharma.com/typo/>

Danke für eure Hilfe.

Liebe Grüsse
angsch-li

TS:

```typoscript
    # Das Hauptmenü erstellen

MENU = HMENU
 MENU.special = directory
          MENU.special.value = 3
          MENU {
  ### Erste Ebene ###
    1 = TMENU
    1 {
      wrap = <ul class="menu">|</ul>
      expAll = 1
      NO.wrapItemAndSub = <li onmouseover="show(this)" onmouseout="hide(this)">|</li>
               
      ACT < .NO
      ACT = 1
      ACT.ATagParams = class="active"
    }

    ### Zweite Ebene ###
    2 = TMENU
    2 {
      wrap = <ul onmouseover="show(this)" onmouseout="hide(this)">|</ul>
      NO.allWrap = <li>|</li>
    }
            
  
}
       
      # Das Untermenü erstellen          
       SUBMENU= HMENU 
          SUBMENU.special.value = 3         
       SUBMENU{           
         entryLevel = 2               
         1 = TMENU               
         1.NO = 1               
         1.NO.linkWrap = <font color="#676767"> <br />  <br />                      
}
```

CSS:

```html
li {text-align: left;  color: #333333;font-size: 13px; font-family:Arial, Helvetica, sans-serif;}
ul li a:link   { font-size: 13px; color: #fff; font-family: Arial, Helvetica, sans-serif;  text-decoration: none;}
ul li a:hover   { font-size: 13px; color: #0C2C80; font-family: Arial, Helvetica, sans-serif;  text-decoration: none; }
ul li a:active   { font-size: 13px; color: #0C2C80; font-family: Arial, Helvetica, sans-serif;  text-decoration: none; }

ul  a:link   { font-size: 13px; color: #fff; font-family: Arial, Helvetica, sans-serif;  text-decoration: none;}
ul  a:hover   { font-size: 13px; color: #0C2C80; font-family: Arial, Helvetica, sans-serif;  text-decoration: none; background-color:#D9D6E9;}
ul  a:active   { font-size: 13px; color: #0C2C80; font-family: Arial, Helvetica, sans-serif;  text-decoration: none; }




ul.menu, ul.menu ul {

    list-style-type: none;

}

/* 1. Stufe Textplatzierung */


ul.menu a {

    display: block;

    padding: 7px 20px 7px 20px;

    font-weight:bold;


}


/* 2. Stufe Textplatzierung */

ul.menu ul a {

    padding: 8 10;
    font-weight:normal;

}


/* 1. Stufe */

ul.menu li {
    

 padding: 0;

       
    background-image: none;

    background-color: #0C2C80;
    
   float:left;

    border:0 px solid #fff;

}

/* 2. Stufe */

ul.menu ul {

    margin-top:0;

    padding: 0 0 0 0;

    position: absolute;
    
   
 opacity: 0.8;
filter: alpha(opacity=80);
-moz-opacity: 0.8;
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80);
 -khtml-opacity: 0.8;
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";

    border:1px solid #ffffff;

    display:none;

    min-width:160px;

}



/* IE-Hack für die Breite */

*html ul.menu ul {

    width:160px;

}



/* Dies sind die Klassenstile für das Untermenü wenn sich die Maus */

/* über der Liste  befindet (.hover siehe JavaScript oben) */

ul.menu ul.hover, ul.menu li.hover ul, ul.menu li:hover ul  {

    display:block;

}


/* 2. Stufe */

ul.menu ul li {

    float:none;

    background-color: #0C2C80;

}
```

Bild 2 - Firefox:
[Bild: wild-pharma.com/…/Bild_2.png](http://www.wild-pharma.com/typo/fileadmin/Bilder/Bild_2.png)

Bild 3 - Safari
[Bild: wild-pharma.com/…/Bild_3.png](http://www.wild-pharma.com/typo/fileadmin/Bilder/Bild_3.png)

## Antworten

### [#2](https://www.typo3.net/d/98311-typo3-page-mit-css-menuenavigation-darstellungsfehler-im-safari/2) · super-mario · 2010-04-20

kann das daran liegen, dass das "ul.menu" ein margin hat?
versuch mach mal

```html
ul.menu {
margin: 0;
}
```

### [#3](https://www.typo3.net/d/98311-typo3-page-mit-css-menuenavigation-darstellungsfehler-im-safari/3) · angsch-li · 2010-04-20

du bist ein genie!!! suuuuper vielen dank, das wars schon..hat geklappt!! #giggle#  #giggle#

man bin ich blöööde  #angry#  :o

---

Quelle: „Typo3-Page mit CSS Menü/Navigation - Darstellungsfehler im Safari“, typo3.net, https://www.typo3.net/d/98311-typo3-page-mit-css-menuenavigation-darstellungsfehler-im-safari
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
