![]() |
| | LinkBack | Themen-Optionen | Thema bewerten | Ansicht |
|
#1
| ||||
| ||||
Hallo, vorweg: Ich bin noch relativ neu in Typo3, hab zwar bereits ein Projekt mit T3 laufen, aber bei diesem Problem weiß ich einfach nicht weiter. Ich hab mir ein horizontales Ausklappmenü erstellt (bzw. hab auf ein fertiges ausm Internet zurückgegriffen). CSS wählte ich wegen der Barrierefreiheit und so. Der funktionierende HTML Code dafür lautet: HTML-Code: <div id="menu"> <ul> <li> <a href="index.html">Menüpunkt 1<!--[if IE 7]><!--></a><!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]--> <ul> <li><a href="index.html">Unterpunkt 1</a></li> <li><a href="index.html">Unterpunkt 2</li> </ul> <!--[if IE 7]><!--></a><!--<![endif]--> </li> <li> <a href="index.html">Menüpunkt 2<!--[if IE 7]><!--></a><!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]--> <ul> <li><a href="index.html">Unterpunkt 1</a></li> <li><a href="index.html">Unterpunkt 2</a></li> </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]--> </li> <li> <a href="index.html">Menüpunkt 3<!--[if IE 7]><!--></a><!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]--> <ul> <li><a href="index.html">Unterpunkt 1</a></li> <li><a href="index.html">Unterpunkt 2</a></li> <li><a href="index.html">Unterpunkt 3<!--[if IE 7]><!--></a><!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]--> <ul class="right_side"> <li><a href="index.html">Unterpunkt 3.1</a></li> <li><a href="index.html">Unterpunkt 3.2</a></li> <li><a href="index.html">Unterpunkt 3.3</a></li> </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]--> </li> </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]--> </li> </ul> </div> Code: #menu {
background-color:#FF9900;
height:20px;
width:100%;
position:relative;
margin:0;
font-size:11px;
margin:20px 0 60px 0;
z-index:100;
}
#menu a:link {
color:#000000;
text-decoration:none;
}
#menu a:visited {
color:#000000;
text-decoration:none;
}
#menu a:active {
color:#000000;
text-decoration:none;
}
#menu a:hover {
color:#000000;
text-decoration:none;
}
#menu ul {
padding:0;
margin:0;
list-style-type: none;
z-index:100;
}
#menu ul li {
float:left;
border-left-width:1px;
border-left-style:solid;
border-left-color:#eee;
width:120px;
list-style-type:none;
display:inline;
margin:none;
z-index:100;
}
#menu ul li a, #menu ul li a:visited {
display:block;
float:left;
width:120px;
text-decoration:none;
padding:0 0 0 5px;
line-height:20px;
background-color:#FF9900;
z-index:100;
}
#menu table {
border-collapse:collapse;
margin:0;
padding:0;
font-size:1em;
z-index:100;
}
#menu ul li ul {
visibility:hidden;
position:absolute;
top:20px;
left:0;
z-index:90;
}
#menu ul li:hover a, #menu ul li a:hover {
color:#000000;
background-color:#F7AE16;
}
#menu ul li:hover ul, #menu ul li a:hover ul {
visibility:visible;
width:100%;
background-color:#F7AE16;
color:#fff;
z-index:90;
}
#menu ul li:hover ul.right_side li, #menu ul li a:hover ul.right_side li {
float:left;
border:0;
border-left-width:1px;
border-left-style:solid;
border-left-color:#eee;
z-index:100;
}
#menu ul li:hover ul.left_side li, #menu ul li a:hover ul.left_side li {
float:left;
border:0;
border-left-width:1px;
border-left-style:solid;
border-left-color:#eee;
}
#menu ul li:hover ul li a.sub, #menu ul li a:hover ul li a.sub {
background-color:#bd8d5e;
color:#fff;
}
#menu ul li:hover ul li ul, #menu ul li a:hover ul li a ul {
visibility:hidden;
position:absolute;
left:0;
top:20px;
z-index:100;
}
#menu ul li:hover ul li a, #menu ul li a:hover ul li a {
display:block;
background-color:#F7AE16;
color:#000000;
z-index:100;
}
#menu ul li:hover ul li a:hover, #menu ul li a:hover ul li a:hover {
background-color:#dfc184;
color:#000;
}
#menu ul li:hover ul li:hover ul, #menu ul li a:hover ul li a:hover ul {
visibility:visible;
color:#000;
background-color:#dfc184;
z-index:90;
margin:0px;
}
#menu ul li:hover ul.right li {
float:right;
}
#menu ul li:hover ul li:hover ul li a, #menu ul li a:hover ul li a:hover ul li a {
background-color:#dfc184;
color:#000;
}
#menu ul li:hover ul li:hover ul li a:hover, #menu ul li a:hover ul li a:hover ul li a:hover {
background-color:#bd8d5e;
color:#fff;
} Hier mal mein TS Code (auch wenn er falsch ist!:sad: Typoscript-Code:
Sorry für die komische Darstellung des HTML Codes, ich weiß nicht woran das hier im vB liegt .... *confused* Vielen Dank für eure Hilfe!! Patrick |
|
#2
| |||
| |||
| Handelt es sich um das ULTIMATE CSS only drop-down menu? Dann schau hier: The ULTIMATE CSS only drop-down menu Armin
__________________ Nichts kommt von selbst, sogar eine Dummheit muss man erst machen. Tipps und Tricks zu TYPO3: http://typo3.intervation.de |
|
#3
| |||
| |||
| Nein. Es handelt sich hierbei um folgendes Menüscript: Stu Nicholls | CSSplay | Validating drop down cross-browser menuWobei es vom gleichen Entwickler ist... Lässt sich dein Menü auch mit 3 Ebenen realisieren? |
|
#4
| |||
| |||
| moin, das TS müsste das gleiche sein, Unterschiede bestehen eigentlich nur im CSS-File (Glaube ich zumindest). Zitat:
Armin
__________________ Nichts kommt von selbst, sogar eine Dummheit muss man erst machen. Tipps und Tricks zu TYPO3: http://typo3.intervation.de |
|
#5
| |||
| |||
| //Edit: Sorry, es geht doch! VIELEN DANK! Geändert von hpatrick (07.01.07 um 19:27 Uhr). |
|
#6
| |||
| |||
| Vielleicht hilft dir das hier auch weiter: Typo3 Dropdownmenü |
![]() |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | Thema bewerten |
| |
Ähnliche Themen | ||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| Template und Typo Script! | sinologecn | TYPO3 4.x Fragen und Probleme | 2 | 03.01.08 09:04 |
| Content Element per Typo Script | Anderl | TemplaVoila | 0 | 18.10.07 18:21 |
| Wie kann ich mein Projekt mit Typo umsetzen? | derFuzzy | TYPO3 4.x Fragen und Probleme | 3 | 18.04.07 14:39 |
| komplexes grafisches Menü | rakutsi | GMENU, HMENU, TMENU und Co. | 6 | 06.03.07 13:38 |
| Menu mit CSS und dann bei typo script? | stephan37 | GMENU, HMENU, TMENU und Co. | 2 | 16.12.05 14:48 |