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...
Untermenüs verbergen-ich kriegs nicht hin
Beitrag
<blockquote data-quote="LamaGeli" data-source="post: 1768519" data-attributes="member: 311273"><p>Irgendwo muss da wohl noch "display: none" hin............aber wo.</p><p>Hier der CSS Code:</p><p></p><p>[HTML]@charset "utf-8";</p><p></p><p></p><p>body {</p><p> font: 100%/1.4 Verdana, Arial, Helvetica, sans-serif;</p><p> margin: 0;</p><p> padding: 0;</p><p> color: #000;</p><p> background-image: url(Images/MilkwayEarthBG.jpg);</p><p> background-repeat: no-repeat;</p><p> background-color: #000;</p><p>} </p><p></p><p></p><p>ul, ol, dl { </p><p> padding: 0;</p><p> margin: 0;</p><p>}</p><p>h1, h2, h3, h4, h5, h6, p {</p><p> margin-top: 0; </p><p> padding-right: 15px;</p><p> padding-left: 15px; </p><p>}</p><p>a img { </p><p> border: none;</p><p>}</p><p></p><p>a:link {</p><p> color:#414958;</p><p> text-decoration: underline; </p><p>}</p><p>a:visited {</p><p> color: #4E5869;</p><p> text-decoration: underline;</p><p>}</p><p>a:hover, a:active, a:focus { </p><p> text-decoration: none;</p><p>}</p><p></p><p></p><p>.container {</p><p> width: 80%;</p><p> max-width: 1260px;</p><p> min-width: 720px;</p><p> font-size: 12px;</p><p> background-position: center top;</p><p> margin-top: 0px;</p><p> margin-right: auto;</p><p> margin-bottom: 0px;</p><p> margin-left: auto;</p><p> padding-top: 0px;</p><p> padding-right: 15px;</p><p> padding-bottom: 15px;</p><p> padding-left: 15px;</p><p> background-size: 100%;</p><p>}</p><p></p><p>.header {</p><p> display: block;</p><p> padding: 12px;</p><p> -webkit-border-radius: 20px;</p><p> -moz-border-radius: 20px;</p><p> border-radius: 20px;</p><p> -moz-box-shadow:inset 0 0 20px #CACACA;</p><p> -webkit-box-shadow:inset 0 0 20px #CACACA;</p><p> box-shadow:inset 0 0 20px #CACACA;</p><p> background-image: url(Images/TW_Text2.png);</p><p> background-position: right center;</p><p> background-repeat: no-repeat;</p><p> border: 2px solid #666</p><p>}</p><p></p><p> </p><p></p><p>.sidebar1 {</p><p> float: left;</p><p> width: 22%;</p><p> color: #FFF;</p><p> margin-top: 15px;</p><p> margin-right: 0px;</p><p> margin-bottom: 0px;</p><p> margin-left: 0px;</p><p> -webkit-border-radius: 20px;</p><p> -moz-border-radius: 20px;</p><p> border-radius: 20px;</p><p> -moz-box-shadow:inset 0 0 20px #CACACA;</p><p> -webkit-box-shadow:inset 0 0 20px #CACACA;</p><p> box-shadow:inset 0 0 20px #CACACA;</p><p> background: #000000; /* Fallback IE 6-8 */</p><p> background: rgba(0, 0, 0, .6);</p><p> border: 2px solid #666;</p><p> padding-top: 15px;</p><p>}</p><p>.content {</p><p> float: right;</p><p> width: 73%;</p><p> padding: 12px;</p><p> -webkit-border-radius: 20px;</p><p> -moz-border-radius: 20px;</p><p> border-radius: 20px;</p><p> -moz-box-shadow:inset 0 0 20px #CACACA;</p><p> -webkit-box-shadow:inset 0 0 20px #CACACA;</p><p> box-shadow:inset 0 0 20px #CACACA;</p><p> background: #000000; /* Fallback IE 6-8 */</p><p> background: rgba(0, 0, 0, .6);</p><p> color: #FFF;</p><p> margin-top: 15px;</p><p> margin-right: 0px;</p><p> margin-bottom: 15px;</p><p> margin-left: 0px;</p><p> border: 2px solid #666;</p><p>}</p><p></p><p></p><p>.content ul, .content ol { </p><p> padding: 0 15px 15px 40px; </p><p>}</p><p></p><p></p><p>ul.nav {</p><p> list-style: none; </p><p> margin-bottom: 15px; </p><p>}</p><p>ul.nav li {</p><p> list-style-type: none;</p><p> </p><p>}</p><p></p><p>ul.nav a, ul.nav a:visited { </p><p> display: block;</p><p> -webkit-border-radius: 20px;</p><p> -moz-border-radius: 20px;</p><p> border-radius: 20px;</p><p> -moz-box-shadow:inset 0 0 12px #CACACA;</p><p> -webkit-box-shadow:inset 0 0 12px #CACACA;</p><p> box-shadow:inset 0 0 12px #CACACA;</p><p> border: 1px solid #666;/* Fallback IE 6-8 */</p><p> border: 1px solid rgba(0, 0, 0, .6);</p><p> </p><p> text-decoration: none;</p><p> color: #9CF;</p><p> padding-top: 5px;</p><p> padding-right: 5px;</p><p> padding-bottom: 5px;</p><p> padding-left: 15px;</p><p> margin-top: 5px;</p><p> margin-right: 8px;</p><p> margin-bottom: 5px;</p><p> margin-left: 8px;</p><p>}</p><p>ul.nav a:hover, ul.nav a:active, ul.nav a:focus { </p><p> color: #FFF;</p><p> background: #009; /* Fallback IE 6-8 */</p><p> background: rgba(0, 0, 153, .6);</p><p> -moz-box-shadow:inset 0 0 20px #9CF;</p><p> -webkit-box-shadow:inset 0 0 20px #9CF;</p><p> box-shadow:inset 0 0 20px #9CF;</p><p>}</p><p> </p><p></p><p>.footer {</p><p> padding: 12px;</p><p> -webkit-border-radius: 20px;</p><p> -moz-border-radius: 20px;</p><p> border-radius: 20px;</p><p> -moz-box-shadow:inset 0 0 20px #CACACA;</p><p> -webkit-box-shadow:inset 0 0 20px #CACACA;</p><p> box-shadow:inset 0 0 20px #CACACA;</p><p> clear: both; </p><p> color: #FFF;</p><p> border: 2px solid #666;</p><p> width: 73%;</p><p> float: right;</p><p>}</p><p></p><p></p><p>.fltrt { </p><p> float: right;</p><p> margin-left: 8px;</p><p>}</p><p>.fltlft { </p><p> float: left;</p><p> margin-right: 8px;</p><p>}</p><p>.clearfloat { </p><p> clear:both;</p><p> height:0;</p><p> font-size: 1px;</p><p> line-height: 0px;</p><p>}</p><p>[/HTML]...und hier der html:</p><p></p><p>[HTML]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"></p><p><html xmlns="http://www.w3.org/1999/xhtml"></p><p><head></p><p><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></p><p><title>3D_Animation</title></p><p><link href="Stylesheet_Easy.css" rel="stylesheet" type="text/css" /></p><p></head></p><p></p><p><body></p><p><div class="container"></p><p> <div class="header"><a href="#"><img src="Images/Logo_Ani1RKl.gif" id="Insert_logo" /></a> </p><p> <!-- end .header --></div></p><p> <div class="sidebar1"></p><p> <ul class="nav"></p><p> <li><a href="#">3D Animation</a></p><p> <ul></p><p> <li><a href="#">3D_Untermenü_1</a></li></p><p> <li><a href="#">3D_Untermenü_2</a></li></p><p> <li><a href="#">3D_Untermenü_3</a></li></p><p> <li><a href="#">3D_Untermenü_4</a></li></p><p> </ul></p><p> <li><a href="#">360° Präsentation</a></p><p> <ul></p><p> <li><a href="#">360°_Untermenü_1</a></li></p><p> <li><a href="#">360°_Untermenü_2</a></li></p><p> </ul></p><p> <li><a href="#">Impressum</a></li></p><p> </ul></p><p> <p> Diese Links sind noch nicht aktiv</p></p><p> <!-- end .sidebar1 --></div></p><p> <div class="content"></p><p> <h1>Headline</h1></p><p> <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, </p></p><p> <h2>little Headline</h2></p><p> <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, </p></p><p> <h3>ittleHeadline</h3></p><p> <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, </p></p><p> </p><p> </div></p><p> <div class="footer"></p><p> <p>Hier kommen die Füße rein :-) </p></p><p> <!-- end .footer --></div></p><p> <!-- end .container --></div></p><p></p><p></body></p><p></html></p><p>[/HTML]</p><p></p><p>Es wär ganz nett, wenn jemand die Lösung für mich wüsste.</p><p></p><p>Die Untermenüs sollen beim klicken des entsprechenden Obermenüs zum Vorschein kommen.</p><p></p><p>Danke</p><p>Geli</p></blockquote><p></p>
[QUOTE="LamaGeli, post: 1768519, member: 311273"] Irgendwo muss da wohl noch "display: none" hin............aber wo. Hier der CSS Code: [HTML]@charset "utf-8"; body { font: 100%/1.4 Verdana, Arial, Helvetica, sans-serif; margin: 0; padding: 0; color: #000; background-image: url(Images/MilkwayEarthBG.jpg); background-repeat: no-repeat; background-color: #000; } ul, ol, dl { padding: 0; margin: 0; } h1, h2, h3, h4, h5, h6, p { margin-top: 0; padding-right: 15px; padding-left: 15px; } a img { border: none; } a:link { color:#414958; text-decoration: underline; } a:visited { color: #4E5869; text-decoration: underline; } a:hover, a:active, a:focus { text-decoration: none; } .container { width: 80%; max-width: 1260px; min-width: 720px; font-size: 12px; background-position: center top; margin-top: 0px; margin-right: auto; margin-bottom: 0px; margin-left: auto; padding-top: 0px; padding-right: 15px; padding-bottom: 15px; padding-left: 15px; background-size: 100%; } .header { display: block; padding: 12px; -webkit-border-radius: 20px; -moz-border-radius: 20px; border-radius: 20px; -moz-box-shadow:inset 0 0 20px #CACACA; -webkit-box-shadow:inset 0 0 20px #CACACA; box-shadow:inset 0 0 20px #CACACA; background-image: url(Images/TW_Text2.png); background-position: right center; background-repeat: no-repeat; border: 2px solid #666 } .sidebar1 { float: left; width: 22%; color: #FFF; margin-top: 15px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; -webkit-border-radius: 20px; -moz-border-radius: 20px; border-radius: 20px; -moz-box-shadow:inset 0 0 20px #CACACA; -webkit-box-shadow:inset 0 0 20px #CACACA; box-shadow:inset 0 0 20px #CACACA; background: #000000; /* Fallback IE 6-8 */ background: rgba(0, 0, 0, .6); border: 2px solid #666; padding-top: 15px; } .content { float: right; width: 73%; padding: 12px; -webkit-border-radius: 20px; -moz-border-radius: 20px; border-radius: 20px; -moz-box-shadow:inset 0 0 20px #CACACA; -webkit-box-shadow:inset 0 0 20px #CACACA; box-shadow:inset 0 0 20px #CACACA; background: #000000; /* Fallback IE 6-8 */ background: rgba(0, 0, 0, .6); color: #FFF; margin-top: 15px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px; border: 2px solid #666; } .content ul, .content ol { padding: 0 15px 15px 40px; } ul.nav { list-style: none; margin-bottom: 15px; } ul.nav li { list-style-type: none; } ul.nav a, ul.nav a:visited { display: block; -webkit-border-radius: 20px; -moz-border-radius: 20px; border-radius: 20px; -moz-box-shadow:inset 0 0 12px #CACACA; -webkit-box-shadow:inset 0 0 12px #CACACA; box-shadow:inset 0 0 12px #CACACA; border: 1px solid #666;/* Fallback IE 6-8 */ border: 1px solid rgba(0, 0, 0, .6); text-decoration: none; color: #9CF; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 15px; margin-top: 5px; margin-right: 8px; margin-bottom: 5px; margin-left: 8px; } ul.nav a:hover, ul.nav a:active, ul.nav a:focus { color: #FFF; background: #009; /* Fallback IE 6-8 */ background: rgba(0, 0, 153, .6); -moz-box-shadow:inset 0 0 20px #9CF; -webkit-box-shadow:inset 0 0 20px #9CF; box-shadow:inset 0 0 20px #9CF; } .footer { padding: 12px; -webkit-border-radius: 20px; -moz-border-radius: 20px; border-radius: 20px; -moz-box-shadow:inset 0 0 20px #CACACA; -webkit-box-shadow:inset 0 0 20px #CACACA; box-shadow:inset 0 0 20px #CACACA; clear: both; color: #FFF; border: 2px solid #666; width: 73%; float: right; } .fltrt { float: right; margin-left: 8px; } .fltlft { float: left; margin-right: 8px; } .clearfloat { clear:both; height:0; font-size: 1px; line-height: 0px; } [/HTML]...und hier der html: [HTML]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>3D_Animation</title> <link href="Stylesheet_Easy.css" rel="stylesheet" type="text/css" /> </head> <body> <div class="container"> <div class="header"><a href="#"><img src="Images/Logo_Ani1RKl.gif" id="Insert_logo" /></a> <!-- end .header --></div> <div class="sidebar1"> <ul class="nav"> <li><a href="#">3D Animation</a> <ul> <li><a href="#">3D_Untermenü_1</a></li> <li><a href="#">3D_Untermenü_2</a></li> <li><a href="#">3D_Untermenü_3</a></li> <li><a href="#">3D_Untermenü_4</a></li> </ul> <li><a href="#">360° Präsentation</a> <ul> <li><a href="#">360°_Untermenü_1</a></li> <li><a href="#">360°_Untermenü_2</a></li> </ul> <li><a href="#">Impressum</a></li> </ul> <p> Diese Links sind noch nicht aktiv</p> <!-- end .sidebar1 --></div> <div class="content"> <h1>Headline</h1> <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, </p> <h2>little Headline</h2> <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, </p> <h3>ittleHeadline</h3> <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, </p> </div> <div class="footer"> <p>Hier kommen die Füße rein :-) </p> <!-- end .footer --></div> <!-- end .container --></div> </body> </html> [/HTML] Es wär ganz nett, wenn jemand die Lösung für mich wüsste. Die Untermenüs sollen beim klicken des entsprechenden Obermenüs zum Vorschein kommen. Danke Geli [/QUOTE]
Bilder bitte
hier hochladen
und danach über das Bild-Icon (Direktlink vorher kopieren) platzieren.
Zitate einfügen…
Authentifizierung
Wenn ▲ = 7, ▼ = 3, ◇ = 2 und die Summe von ▲ und ▼ durch ◇ geteilt wird, was ist das Ergebnis?
Antworten
Start
Forum
Sonstiges
Webdesign, Webentwicklung & Programmierung
Webdesign: HTML/CSS, Responsive Design, Sass...
Untermenüs verbergen-ich kriegs nicht hin
Oben