PSD-Tutorials.de
Forum für Design, Fotografie & Bildbearbeitung
Tutkit
Agentur
Hilfe
Kontakt
Start
Forum
Aktuelles
Besonderer Inhalt
Foren durchsuchen
Tutorials
News
Anmelden
Kostenlos registrieren
Aktuelles
Suche
Suche
Nur Titel durchsuchen
Von:
Menü
Anmelden
Kostenlos registrieren
App installieren
Installieren
JavaScript ist deaktiviert. Für eine bessere Darstellung aktiviere bitte JavaScript in deinem Browser, bevor du fortfährst.
Du verwendest einen veralteten Browser. Es ist möglich, dass diese oder andere Websites nicht korrekt angezeigt werden.
Du solltest ein Upgrade durchführen oder einen
alternativen Browser
verwenden.
Antworten auf deine Fragen:
Neues Thema erstellen
Start
Forum
Sonstiges
Webdesign, Webentwicklung & Programmierung
Webdesign: HTML/CSS, Responsive Design, Sass...
Spry Menü - Aussehen der Untermenüs ändern
Beitrag
<blockquote data-quote="Jimbim" data-source="post: 1350249" data-attributes="member: 241774"><p>Hi!</p><p></p><p>Ich hab folgendes Problem, mit Dreamweaver hab ich ein Spry-Menü erstellt und hab das Aussehen verändert, indem ich mir eigene Hintergründe erstellt hab. Hat auch alles soweit ganz gut funktioniert. Jetzt bin ich in CSS aber noch nicht so der Profi und deswegen wende ich mich jetzt an euch.</p><p></p><p>Die Untermenüs sollen andere Größen und Hintergründe (im normalen, wie im Mouse-over Zustand) haben. Wie bekomm ich des hin?</p><p></p><p>Zur Test-Seite kommt ihr hier: </p><p></p><p>Hier der CSS Code:</p><p></p><p>[CODE]</p><p></p><p>@charset "UTF-8";</p><p></p><p>/* SpryMenuBarVertical.css - version 0.6 - Spry Pre-Release 1.6.1 */</p><p></p><p>/* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */</p><p></p><p>/*******************************************************************************</p><p></p><p> LAYOUT INFORMATION: describes box model, positioning, z-order</p><p></p><p> *******************************************************************************/</p><p></p><p>/* The outermost container of the Menu Bar, a fixed width box with no margin or padding */</p><p>ul.MenuBarVertical</p><p>{</p><p> margin: 0;</p><p> padding: 0;</p><p> list-style-type: none;</p><p> font-size: 100%;</p><p> cursor: default;</p><p> width: 140px;</p><p>}</p><p>/* 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 */</p><p>ul.MenuBarActive</p><p>{</p><p> z-index: 1000;</p><p>}</p><p>/* Menu item containers, position children relative to this container and are same fixed width as parent */</p><p>ul.MenuBarVertical li</p><p>{</p><p> margin: 0;</p><p> padding: 0;</p><p> list-style-type: none;</p><p> font-size: 100%;</p><p> position: relative;</p><p> text-align: left;</p><p> cursor: pointer;</p><p> width: 140px;</p><p>}</p><p>/* Submenus should appear slightly overlapping to the right (95%) and up (-5%) with a higher z-index, but they are initially off the left side of the screen (-1000em) */</p><p>ul.MenuBarVertical ul</p><p>{</p><p> margin: 5% 0 0 105%;</p><p> padding: 0;</p><p> list-style-type: none;</p><p> font-size: 100%;</p><p> position: absolute;</p><p> z-index: 1020;</p><p> cursor: default;</p><p> width: 140px;</p><p> left: -1000em;</p><p> top: 0;</p><p>}</p><p>/* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */</p><p>ul.MenuBarVertical ul.MenuBarSubmenuVisible</p><p>{</p><p> left: 0;</p><p>}</p><p>/* Menu item containers are same fixed width as parent */</p><p>ul.MenuBarVertical ul li</p><p>{</p><p> width: 140px;</p><p>}</p><p></p><p>/*******************************************************************************</p><p></p><p> DESIGN INFORMATION: describes color scheme, borders, fonts</p><p></p><p> *******************************************************************************/</p><p></p><p>/* Outermost menu container has borders on all sides */</p><p>ul.MenuBarVertical</p><p>{</p><p> </p><p>}</p><p>/* Submenu containers have borders on all sides */</p><p>ul.MenuBarVertical ul</p><p>{</p><p> background-image: url(../images/grafik/menu_sub_up.gif);</p><p>}</p><p></p><p>ul.MenuBarVertical ul li </p><p>{</p><p> background-image: url(../images/grafik/menu_sub_up.gif);</p><p>}</p><p>/* Menu items are a light gray block with padding and no text decoration */</p><p>ul.MenuBarVertical a</p><p>{</p><p> display: block;</p><p> cursor: pointer;</p><p> background-image: url(../images/grafik/menu_up.gif);</p><p> padding: 0.5em 0.75em;</p><p> color: #333;</p><p> text-decoration: none;</p><p>}</p><p>/* Menu items that have mouse over or focus have a blue background and white text */</p><p>ul.MenuBarVertical a:hover, ul.MenuBarVertical a:focus</p><p>{</p><p> background-image: url(../images/grafik/menu_over.gif);</p><p> color: #FFF;</p><p>}</p><p>/* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */</p><p>ul.MenuBarVertical a.MenuBarItemHover, ul.MenuBarVertical a.MenuBarItemSubmenuHover, ul.MenuBarVertical a.MenuBarSubmenuVisible</p><p>{</p><p> background-color: #33C;</p><p> color: #FFF;</p><p>}</p><p></p><p>/*******************************************************************************</p><p></p><p> SUBMENU INDICATION: styles if there is a submenu under a given menu item</p><p></p><p> *******************************************************************************/</p><p></p><p>/* 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%) */</p><p>ul.MenuBarVertical a.MenuBarItemSubmenu</p><p>{</p><p> background-image: url(../images/grafik/Menu_main_sub_up.gif);</p><p> background-repeat: no-repeat;</p><p>}</p><p></p><p>/* 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%) */</p><p>ul.MenuBarVertical a.MenuBarItemSubmenuHover</p><p>{</p><p> background-image: url(../images/grafik/menu_main_sub_over.gif);</p><p>}</p><p></p><p>/*******************************************************************************</p><p></p><p> BROWSER HACKS: the hacks below should not be changed unless you are an expert</p><p></p><p> *******************************************************************************/</p><p></p><p>/* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */</p><p>ul.MenuBarVertical iframe</p><p>{</p><p> position: absolute;</p><p> z-index: 1010;</p><p> filter:alpha(opacity:0.1);</p><p>}</p><p>/* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */</p><p>@media screen, projection</p><p>{</p><p> ul.MenuBarVertical li.MenuBarItemIE</p><p> {</p><p> display: inline;</p><p> f\loat: left;</p><p> background: #FFF;</p><p> }</p><p>}</p><p></p><p></p><p>[/CODE]</p></blockquote><p></p>
[QUOTE="Jimbim, post: 1350249, member: 241774"] Hi! Ich hab folgendes Problem, mit Dreamweaver hab ich ein Spry-Menü erstellt und hab das Aussehen verändert, indem ich mir eigene Hintergründe erstellt hab. Hat auch alles soweit ganz gut funktioniert. Jetzt bin ich in CSS aber noch nicht so der Profi und deswegen wende ich mich jetzt an euch. Die Untermenüs sollen andere Größen und Hintergründe (im normalen, wie im Mouse-over Zustand) haben. Wie bekomm ich des hin? Zur Test-Seite kommt ihr hier: Hier der CSS Code: [CODE] @charset "UTF-8"; /* SpryMenuBarVertical.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, a fixed width box with no margin or padding */ ul.MenuBarVertical { margin: 0; padding: 0; list-style-type: none; font-size: 100%; cursor: default; width: 140px; } /* 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 same fixed width as parent */ ul.MenuBarVertical li { margin: 0; padding: 0; list-style-type: none; font-size: 100%; position: relative; text-align: left; cursor: pointer; width: 140px; } /* Submenus should appear slightly overlapping to the right (95%) and up (-5%) with a higher z-index, but they are initially off the left side of the screen (-1000em) */ ul.MenuBarVertical ul { margin: 5% 0 0 105%; padding: 0; list-style-type: none; font-size: 100%; position: absolute; z-index: 1020; cursor: default; width: 140px; left: -1000em; top: 0; } /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */ ul.MenuBarVertical ul.MenuBarSubmenuVisible { left: 0; } /* Menu item containers are same fixed width as parent */ ul.MenuBarVertical ul li { width: 140px; } /******************************************************************************* DESIGN INFORMATION: describes color scheme, borders, fonts *******************************************************************************/ /* Outermost menu container has borders on all sides */ ul.MenuBarVertical { } /* Submenu containers have borders on all sides */ ul.MenuBarVertical ul { background-image: url(../images/grafik/menu_sub_up.gif); } ul.MenuBarVertical ul li { background-image: url(../images/grafik/menu_sub_up.gif); } /* Menu items are a light gray block with padding and no text decoration */ ul.MenuBarVertical a { display: block; cursor: pointer; background-image: url(../images/grafik/menu_up.gif); padding: 0.5em 0.75em; color: #333; text-decoration: none; } /* Menu items that have mouse over or focus have a blue background and white text */ ul.MenuBarVertical a:hover, ul.MenuBarVertical a:focus { background-image: url(../images/grafik/menu_over.gif); color: #FFF; } /* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */ ul.MenuBarVertical a.MenuBarItemHover, ul.MenuBarVertical a.MenuBarItemSubmenuHover, ul.MenuBarVertical a.MenuBarSubmenuVisible { background-color: #33C; 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.MenuBarVertical a.MenuBarItemSubmenu { background-image: url(../images/grafik/Menu_main_sub_up.gif); background-repeat: no-repeat; } /* 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.MenuBarVertical a.MenuBarItemSubmenuHover { background-image: url(../images/grafik/menu_main_sub_over.gif); } /******************************************************************************* 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.MenuBarVertical 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.MenuBarVertical li.MenuBarItemIE { display: inline; f\loat: left; background: #FFF; } } [/CODE] [/QUOTE]
Bilder bitte
hier hochladen
und danach über das Bild-Icon (Direktlink vorher kopieren) platzieren.
Zitate einfügen…
Authentifizierung
Wenn ★ = 12, ◇ = 4 und die Hälfte von ★ zu ◇ addiert wird, was ist das Ergebnis?
Antworten
Start
Forum
Sonstiges
Webdesign, Webentwicklung & Programmierung
Webdesign: HTML/CSS, Responsive Design, Sass...
Spry Menü - Aussehen der Untermenüs ändern
Oben