ERLEDIGT
NEIN
NEIN
ANTWORTEN
19
19
ZUGRIFFE
2869
2869
EMPFEHLEN
-
14.06.09 22:22 #16Maik Tutorials.de Gastzugang
Oder einfach mal zwischendurch den Browsercache leeren, damit beim nächsten Seitenaufruf die neuen Files geladen werden

mfg Maik
-
so, hallo Maik, nochmal was
Text im menu mittig - text im Untermenu links
hab dieses durchgemacht
http://livedocs.adobe.com/en_US/Spry...4ABD2F171.html
und das angeschaut
http://labs.adobe.com/technologies/s...BarSample.html
da steht das ja eigentlich gut beschrieben drin
aber es funktioniert bei mir nicht
css anbei
was mach ich da falsch ?
Code :1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202
@charset "UTF-8"; /* SpryMenuBarHorizontal.css - version 0.6 - Spry Pre-Release 1.6.1 */ /* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */ /******************************************************************************* LAYOUT INFORMATION: describes box model, positioning, z-order *******************************************************************************/ /* The outermost container of the Menu Bar, an auto width box with no margin or padding */ /*ul.MenuBarHorizontal { list-style-type: none; font-size: 85%; cursor: default; width: auto; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; }*/ ul.MenuBarHorizontal { list-style-type: none; font-size: 85%; cursor: default; width: auto; margin-top: 0px; margin-right: 40px; margin-bottom: 0px; margin-left: 0px; padding-top: 2px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; } /* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html */ ul.MenuBarActive { z-index: 1000; } /* Menu item containers, position children relative to this container and are a fixed width */ ul.MenuBarHorizontal li { list-style-type: none; font-size: 100%; position: relative; text-align: left; cursor: pointer; width: 6em; float: right; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; } /* Submenus should appear below their parent (top: 0) with a higher z-index, but they are initially off the left side of the screen (-1000em) */ ul.MenuBarHorizontal ul { list-style-type: none; font-size: 100%; z-index: 1020; cursor: default; width: 7em; position: absolute; left: -1000em; padding-top: 0; padding-right: 0; padding-bottom: 0; padding-left: 0; margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; } /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */ ul.MenuBarHorizontal ul.MenuBarSubmenuVisible { left: auto; } /* Menu item containers are same fixed width as parent */ ul.MenuBarHorizontal ul li { float: none; width: 7em; } /* Submenus should appear slightly overlapping to the right (95%) and up (-5%) */ ul.MenuBarHorizontal ul ul { position: absolute; margin: -5% 0 0 95%; } /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */ ul.MenuBarHorizontal ul.MenuBarSubmenuVisible ul.MenuBarSubmenuVisible { left: auto; top: 0; } /******************************************************************************* DESIGN INFORMATION: describes color scheme, borders, fonts *******************************************************************************/ /* Submenu containers have borders on all sides */ ul.MenuBarHorizontal ul { margin-top: -4px; margin-left: 6px; border: thin solid #FC3; } /* Menu items are a light gray block with padding and no text decoration */ ul.MenuBarHorizontal a { display: block; cursor: pointer; background-color: #FCF6E8; color: #333; text-decoration: none; text-align: center; /*text in allen Menus steht auf CENTER*/ padding-top: 0.5em; padding-right: 0.75em; padding-bottom: 0.5em; padding-left: 0.75em; } /* Menu items that have mouse over or focus have a blue background and white text */ ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus { background-color: #33C; color: #FFF; } /* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */ ul.MenuBarHorizontal a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarSubmenuVisible { background-color: #F90; color: #FFF; } /******************************************************************************* SUBMENU INDICATION: styles if there is a submenu under a given menu item *******************************************************************************/ /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */ ul.MenuBarHorizontal a.MenuBarItemSubmenu { } /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */ ul.MenuBarHorizontal ul a.MenuBarItemSubmenu { } /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */ ul.MenuBarHorizontal a.MenuBarItemSubmenuHover { } /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */ ul.MenuBarHorizontal ul a.MenuBarItemSubmenuHover { text-align: left; /* */ } /******************************************************************************* BROWSER HACKS: the hacks below should not be changed unless you are an expert *******************************************************************************/ /* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */ ul.MenuBarHorizontal iframe { position: absolute; z-index: 1010; filter:alpha(opacity:0.1); } /* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */ @media screen, projection { ul.MenuBarHorizontal li.MenuBarItemIE { display: inline; f\loat: left; background: #FFF; } }
-
15.06.09 12:12 #18Maik Tutorials.de Gastzugang
Mahlzeit

In deinem Stylesheet fehlt der fettmarkierte Selektor:
Code :1 2 3 4 5 6 7 8 9 10 11
/* Center the text within all menu item links. */ ul.MenuBarHorizontal a { text-align: center; } [B]/* Set the the alignment back to left for any * menu item links that are in a sub menu. */[/B] [B]ul.MenuBarHorizontal ul a { text-align: left; }[/B]
mfg Maik
-
wieder mal DANKE
Verständnisfrage
wie kommt man denn darauf so eine Regel neu zu machen ?
ich versuche das so
entsprechendes css markieren, dann darauf "neue Regel erstellen" anwenden
welche css spry Regel hätte ich denn da nehmen müssen ?
habs mit
ul.MenuBarHorizontal ul a.MenuBarItemSubmenu
funktioniert aber nicht
oder ist da mein Ansatz falsch ?
-
15.06.09 15:13 #20Maik Tutorials.de Gastzugang
Um eines vorweg zu nehmen, ich nutze Dreamweaver überhaupt nicht

Dann besitzen bei dir die Links der Submenüs im HTML-Code vermutlich nicht die Klasse MenuBarItemSubmenu, denn bei mir funktioniert es so einwandfrei:habs mit
ul.MenuBarHorizontal ul a.MenuBarItemSubmenu
funktioniert aber nicht
Code :1 2 3 4 5 6 7 8 9 10
<ul class="MenuBarHorizontal"> <li><a href="#">link 1</a></li> <li><a href="#">link 2</a></li> <li><a href="#">link 3</a></li> <li><a href="#">link 4</a> <ul> <li><a href="#" [b]class="MenuBarItemSubmenu"[/b]>sub 4.1</a></li> </ul> </li> </ul>
Code css:1 2 3 4
ul.MenuBarHorizontal ul a.MenuBarItemSubmenu { text-align: left; }
mfg Maik
Ähnliche Themen
-
ich weiß nicht wie ich es nennensoll "animation" spry?
Von mogmog im Forum Javascript & AjaxAntworten: 6Letzter Beitrag: 26.07.09, 17:58 -
[DW3] "spry Menue Bar" nach oben öffnen
Von MrHokai im Forum HTML-EditorenAntworten: 1Letzter Beitrag: 24.03.09, 23:18 -
Spry-Menüleiste
Von Raptorcss im Forum PHPAntworten: 1Letzter Beitrag: 18.02.08, 07:51 -
Nicht gleiche "absolute" Positionierung von Layern bei I.E. und Netscape
Von czerwi im Forum CSSAntworten: 2Letzter Beitrag: 14.10.04, 19:43





Zitieren
Login





