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...
Linkbuttons via CSS3 definieren und einbinden
Beitrag
<blockquote data-quote="Ranger1281" data-source="post: 1968922" data-attributes="member: 423351"><p><strong>AW: Linkbuttons via CSS3 definieren und einbinden</strong></p><p></p><p>ich habe nach Deinem Beispiel:</p><p></p><p>[CODE]background: url(.menubutton1);[/CODE]</p><p>und nachdem dies nicht ging auch</p><p>[CODE]background: url(#menubutton1);[/CODE]</p><p>eingebunden.</p><p>Natürlich habe ich auch oben in der CSS beim 2. Versuch die Klasse, gegen die ID geändert.</p><p>Leider wird der Button nicht angezeigt. </p><p></p><p>Allerdings kämpfe ich gerade auch genau so mit ADcosmos Vorschlag...</p><p>auch wenn ich direkt im UL die gradients definiere kommt nichts...</p><p></p><p>irgendwo ist ein Fehler....</p><p></p><p>am besten setzte ich doch mal die beiden Codes ein:</p><p></p><p>[HTML]<!--<?xml version="1.0" encoding="iso-8859-1"?> --></p><p><!DOCTYPE html></p><p></p><p><html></p><p> <head></p><p> <title>Familie Schepp</title></p><p> <meta name="description" content="" /></p><p> <meta name="keywords" content="" /></p><p> <meta name="author" content="Ralf Schepp" /></p><p> <meta name="robots" content="index, follow" /></p><p> <meta name="language" content="de" /></p><p> <meta name="DC.rights" content="Ralf Schepp" /></p><p> <link rel="shortcut icon" href="favicon.ico" /></p><p> <link rel="stylesheet" href="css/global.css" type="text/css" /></p><p> <link rel="stylesheet" href="css/header.css" type="text/css" /></p><p> <link rel="stylesheet" href="css/menu.css" type="text/css" /></p><p> <meta http-equiv="date" content="17.05.2012" /></p><p> <meta http-equiv="cache-control" content="no-cache" /></p><p> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /></p><p> <meta http-equiv="content-style-type" content="text/css; charset=iso-8859-1" /></p><p> <meta http-equiv="content-script-type" content="text/javascript; charset=iso-8859-1" /></p><p></p><p> </head></p><p> <body></p><p> <!-- Body --></p><p> <div id="body"></div></p><p></p><p> <!-- Header --></p><p> <div id="topbox"></div></p><p> <!-- Bilder im Header --></p><p> <div id="head_pic1"></p><p> <img src="img/Ralf360x360.jpg" alt="Ralf" border="0" width="120" height="120" /></p><p> </div></p><p></p><p> <div id="head_pic2"></p><p> <img src="img/Katja360x360.jpg" alt="Katja" border="0" width="120" height="120" /></p><p> </div></p><p></p><p> <div id="head_pic3"></p><p> <img src="img/Page360x360.jpg" alt="Page" border="0" width="120" height="120" /></p><p> </div></p><p></p><p> <div id="head_pic4"></p><p> <img src="img/Pimpsi120x120.jpg" alt="Pimpsi" border="0" width="120" height="120" /></p><p> </div></p><p></p><p> <div id="head_pic5"></p><p> <img src="img/Leon360x360.jpg" alt="Leon" border="0" width="120" height="120" /></p><p> </div></p><p></p><p> <div id="head_pic6"></p><p> <img src="img/Jonas360x360.jpg" alt="Jonas" border="0" width="120" height="120" /></p><p> </div></p><p></p><p> <div id="head_pic7"></p><p> <img src="img/Maray360x360.jpg" alt="Maray" border="0" width="120" height="120" /></p><p> </div></p><p></p><p> <div id="head_pic8"></p><p> <img src="img/Ponys120x120.jpg" alt="Bonito & Maya" border="0" width="120" height="120" /></p><p> </div></p><p></p><p> <!-- Textlogo im Header --></p><p> <div id="tlogo">Familie Schepp</div></p><p></p><p> <!-- Menu links --></p><p> <div id="menuleft"></div></p><p></p><p> <!--<div id="bhome"></p><p> <div class="menubutton1"></p><p> <a href="index.html">Startseite</a></p><p> </div></p><p> </div> --></p><p></p><p> <!-- Versuch --></p><p> <ul id="navleft"></p><p> <li><a href="index.html" id="bhome">Startseite</a></li></p><p> <li><a href="index.html" id="bbla">2. Seite</a></li></p><p> </ul></p><p></p><p></p><p> <!-- Menu oben --></p><p> <div id="menutop"></div></p><p></p><p> </body></p><p></html>[/HTML]</p><p></p><p>[CODE]/*------------ Menu oben ------------*/</p><p>#menutop</p><p>{</p><p> /*Box- Definition*/</p><p> position: fixed;</p><p> left: 50%;</p><p> margin-left: -600px;</p><p> top: 230px;</p><p> width: 1200px;</p><p> height: 30px;</p><p></p><p> /*Farb- Definintion*/</p><p> /* Alte Browser: */</p><p> background: #fcfff4;</p><p></p><p> /* FireFox 3.6+: */</p><p> background: -moz-linear-gradient(top, #fcfff4 0%, #dfe5d7 30%, #5a5a5a 100%);</p><p></p><p> /* Chrome,Safari4+: */</p><p> background: -webkit-gradient(linear, left top, left bottom,</p><p> color-stop(0%,#fcfff4), color-stop(30%,#dfe5d7), color-stop(100%,#5a5a5a));</p><p></p><p> /* Chrome10+,Safari5.1+: */</p><p> background: -webkit-linear-gradient(top, #fcfff4 0%,#dfe5d7 30%,#5a5a5a 100%);</p><p></p><p> /* Opera 11.10+: */</p><p> background: -o-linear-gradient(top, #fcfff4 0%,#dfe5d7 30%,#5a5a5a 100%);</p><p></p><p> /* IE10+: */</p><p> background: -ms-linear-gradient(top, #fcfff4 0%,#dfe5d7 30%,#5a5a5a 100%);</p><p></p><p> /* W3C: */</p><p> background: linear-gradient(top, #fcfff4 0%,#dfe5d7 30%,#5a5a5a 100%);</p><p></p><p> /* IE6-9: */</p><p> filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fcfff4', endColorstr='#5a5a5a',GradientType=0 );</p><p></p><p></p><p> /*Radien- Definition*/</p><p> -moz-border-radius-topleft: 7px;</p><p> -moz-border-radius-topright: 7px;</p><p> -moz-border-radius-bottomright: 7px;</p><p> -moz-border-radius-bottomleft: 7px;</p><p> -webkit-border-radius: 8px 8px 8px 8px;</p><p> border-radius: 8px 8px 8px 8px;</p><p></p><p> /*Schatten- Definintion*/</p><p> -webkit-box-shadow: 2px 2px 2px 2px #666;</p><p> -moz-box-shadow: 2px 2px 2px 2px #666;</p><p> box-shadow: 2px 2px 2px 2px #666;</p><p> }</p><p></p><p>/*------------ Menu links -----------*/</p><p>#menuleft</p><p> {</p><p> /*Box- Definition*/</p><p> position: fixed;</p><p> left: 50%;</p><p> margin-left: -600px;</p><p> top: 280px;</p><p> width: 200px;</p><p> height: 400px;</p><p> z-index: 2;</p><p></p><p> /*Farb- Definintion*/</p><p> /* Alte Browser: */</p><p> background: #fcfff4;</p><p></p><p> /* FireFox 3.6+: */</p><p> background: -moz-linear-gradient(top, #fcfff4 0%, #dfe5d7 30%, #5a5a5a 100%);</p><p></p><p> /* Chrome,Safari4+: */</p><p> background: -webkit-gradient(linear, left top, left bottom,</p><p> color-stop(0%,#fcfff4), color-stop(30%,#dfe5d7), color-stop(100%,#5a5a5a));</p><p></p><p> /* Chrome10+,Safari5.1+: */</p><p> background: -webkit-linear-gradient(top, #fcfff4 0%,#dfe5d7 30%,#5a5a5a 100%);</p><p></p><p> /* Opera 11.10+: */</p><p> background: -o-linear-gradient(top, #fcfff4 0%,#dfe5d7 30%,#5a5a5a 100%);</p><p></p><p> /* IE10+: */</p><p> background: -ms-linear-gradient(top, #fcfff4 0%,#dfe5d7 30%,#5a5a5a 100%);</p><p></p><p> /* W3C: */</p><p> background: linear-gradient(top, #fcfff4 0%,#dfe5d7 30%,#5a5a5a 100%);</p><p></p><p> /* IE6-9: */</p><p> filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fcfff4', endColorstr='#5a5a5a',GradientType=0 );</p><p></p><p></p><p> /*Radien- Definition*/</p><p> -moz-border-radius-topleft: 14px;</p><p> -moz-border-radius-topright: 14px;</p><p> -moz-border-radius-bottomright: 14px;</p><p> -moz-border-radius-bottomleft: 14px;</p><p> -webkit-border-radius: 16px 16px 16px 16px;</p><p> border-radius: 16px 16px 16px 16px;</p><p></p><p> /*Schatten- Definintion*/</p><p> -webkit-box-shadow: 2px 2px 2px 2px #666;</p><p> -moz-box-shadow: 2px 2px 2px 2px #666;</p><p> box-shadow: 2px 2px 2px 2px #666;</p><p> }</p><p> /*------------ Menubuttons-----------*/</p><p></p><p> /*Menubutton1 - Standardansicht*/</p><p>.menubutton1</p><p> {</p><p> /*Box- Definition*/</p><p> width: 180px;</p><p> height: 25px;</p><p> /*Farb- Definintion*/</p><p> /* Alte Browser: */</p><p> background: #fcfff4;</p><p></p><p> /* FireFox 3.6+: */</p><p> background: -moz-linear-gradient(top, #fcfff4 0%, #dfe5d7 30%, #5a5a5a 100%);</p><p></p><p> /* Chrome,Safari4+: */</p><p> background: -webkit-gradient(linear, left top, left bottom,</p><p> color-stop(0%,#fcfff4), color-stop(30%,#dfe5d7), color-stop(100%,#5a5a5a));</p><p></p><p> /* Chrome10+,Safari5.1+: */</p><p> background: -webkit-linear-gradient(top, #fcfff4 0%,#dfe5d7 30%,#5a5a5a 100%);</p><p></p><p> /* Opera 11.10+: */</p><p> background: -o-linear-gradient(top, #fcfff4 0%,#dfe5d7 30%,#5a5a5a 100%);</p><p></p><p> /* IE10+: */</p><p> background: -ms-linear-gradient(top, #fcfff4 0%,#dfe5d7 30%,#5a5a5a 100%);</p><p></p><p> /* W3C: */</p><p> background: linear-gradient(top, #fcfff4 0%,#dfe5d7 30%,#5a5a5a 100%);</p><p></p><p> /* IE6-9: */</p><p> filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fcfff4', endColorstr='#5a5a5a',GradientType=0 );</p><p></p><p></p><p> /*Radien- Definition*/</p><p> -moz-border-radius-topleft: 5px;</p><p> -moz-border-radius-topright: 5px;</p><p> -moz-border-radius-bottomright: 5px;</p><p> -moz-border-radius-bottomleft: 5px;</p><p> -webkit-border-radius: 6px 6px 6px 6px;</p><p> border-radius: 6px 6px 6px 6px;</p><p></p><p> /*Schatten- Definintion*/</p><p> -webkit-box-shadow: 2px 2px 2px 2px #666;</p><p> -moz-box-shadow: 2px 2px 2px 2px #666;</p><p> box-shadow: 2px 2px 2px 2px #666;</p><p> }</p><p></p><p> /*Menubutton2 - Hoveransicht*/</p><p>.menubutton2</p><p> {</p><p> /*Box- Definition*/</p><p> width: 180px;</p><p> height: 25px;</p><p> /*Farb- Definintion*/</p><p> /* Alte Browser: */</p><p> background: #5a5a5a;</p><p></p><p> /* FireFox 3.6+: */</p><p> background: -moz-linear-gradient(top, #5a5a5a 0%, #dfe5d7 70%, #fcfff4 100%);</p><p></p><p> /* Chrome,Safari4+: */</p><p> background: -webkit-gradient(linear, left top, left bottom,</p><p> color-stop(0%,#5a5a5a), color-stop(70%,#dfe5d7), color-stop(100%,#fcfff4));</p><p></p><p> /* Chrome10+,Safari5.1+: */</p><p> background: -webkit-linear-gradient(top, #5a5a5a 0%,#dfe5d7 70%,#fcfff4 100%);</p><p></p><p> /* Opera 11.10+: */</p><p> background: -o-linear-gradient(top, #5a5a5a 0%,#dfe5d7 70%,#fcfff4 100%);</p><p></p><p> /* IE10+: */</p><p> background: -ms-linear-gradient(top, #5a5a5a 0%,#dfe5d7 70%,#fcfff4 100%);</p><p></p><p> /* W3C: */</p><p> background: linear-gradient(top, #5a5a5a 0%,#dfe5d7 70%,#fcfff4 100%);</p><p></p><p> /* IE6-9: */</p><p> filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#5a5a5a', endColorstr='#fcfff4',GradientType=0 );</p><p></p><p></p><p> /*Radien- Definition*/</p><p> -moz-border-radius-topleft: 5px;</p><p> -moz-border-radius-topright: 5px;</p><p> -moz-border-radius-bottomright: 5px;</p><p> -moz-border-radius-bottomleft: 5px;</p><p> -webkit-border-radius: 6px 6px 6px 6px;</p><p> border-radius: 6px 6px 6px 6px;</p><p></p><p> /*Schatten- Definintion*/</p><p> /*-webkit-box-shadow: 2px 2px 2px 2px #666;</p><p> -moz-box-shadow: 2px 2px 2px 2px #666;</p><p> box-shadow: 2px 2px 2px 2px #666; */</p><p> }</p><p></p><p> /*Position Home-Button*/</p><p>#bhome</p><p> {</p><p> position: fixed;</p><p> left: 50%;</p><p> margin-left: -590px;</p><p> top: 330px;</p><p> width: 180px;</p><p> height: 30px;</p><p> z-index: 3;</p><p></p><p></p><p> font-family:'Comic Sans MS';</p><p> src:local('Comic Sans MS') url(fonts/comic.ttf) format(TrueType);</p><p> font-size:10pt,12pt,14pt,16pt,18pt,20pt,24pt;</p><p> text-align: center;</p><p> }</p><p></p><p> /*Position 2.Button*/</p><p>#bbla</p><p> {</p><p> position: fixed;</p><p> left: 50%;</p><p> margin-left: -590px;</p><p> top: 365px;</p><p> width: 180px;</p><p> height: 30px;</p><p> z-index: 3;</p><p></p><p></p><p> font-family:'Comic Sans MS';</p><p> src:local('Comic Sans MS') url(fonts/comic.ttf) format(TrueType);</p><p> font-size:10pt,12pt,14pt,16pt,18pt,20pt,24pt;</p><p> text-align: center;</p><p> }</p><p></p><p> /*Navigation Menu links*/</p><p>ul #navleft</p><p> {</p><p></p><p> list-style: none;</p><p> position: relative;</p><p> z-index: 3;</p><p> }</p><p></p><p>ul #navleft a</p><p> {</p><p> text-decoration: none;</p><p> display: block</p><p> position: relative; //oder absolute</p><p> width: 100px;</p><p> height: 30px;</p><p> z-index: 4;</p><p> /*ALte Browser*/</p><p> background: #5a5a5a; //deine Hintergrundfarbe, oder alternativ das Bild fur "MouseOut"</p><p></p><p> /* FireFox 3.6+: */</p><p> background: -moz-linear-gradient(top, #fcfff4 0%, #dfe5d7 30%, #5a5a5a 100%);</p><p></p><p> /* Chrome,Safari4+: */</p><p> background: -webkit-gradient(linear, left top, left bottom,</p><p> color-stop(0%,#fcfff4), color-stop(30%,#dfe5d7), color-stop(100%,#5a5a5a));</p><p></p><p> /* Chrome10+,Safari5.1+: */</p><p> background: -webkit-linear-gradient(top, #fcfff4 0%,#dfe5d7 30%,#5a5a5a 100%);</p><p></p><p> /* Opera 11.10+: */</p><p> background: -o-linear-gradient(top, #fcfff4 0%,#dfe5d7 30%,#5a5a5a 100%);</p><p></p><p> /* IE10+: */</p><p> background: -ms-linear-gradient(top, #fcfff4 0%,#dfe5d7 30%,#5a5a5a 100%);</p><p></p><p> /* W3C: */</p><p> background: linear-gradient(top, #fcfff4 0%,#dfe5d7 30%,#5a5a5a 100%);</p><p></p><p> /* IE6-9: */</p><p> filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fcfff4', endColorstr='#5a5a5a',GradientType=0 );</p><p></p><p></p><p> /*Radien- Definition*/</p><p> -moz-border-radius-topleft: 5px;</p><p> -moz-border-radius-topright: 5px;</p><p> -moz-border-radius-bottomright: 5px;</p><p> -moz-border-radius-bottomleft: 5px;</p><p> -webkit-border-radius: 6px 6px 6px 6px;</p><p> border-radius: 6px 6px 6px 6px;</p><p></p><p> /*Schatten- Definintion*/</p><p> -webkit-box-shadow: 2px 2px 2px 2px #666;</p><p> -moz-box-shadow: 2px 2px 2px 2px #666;</p><p> box-shadow: 2px 2px 2px 2px #666;</p><p></p><p> }</p><p></p><p>ul #navleft a:hover</p><p> {</p><p> z-index: 4;</p><p> /*Alte Browser*/</p><p> background: #fcfff4; //deine Hintergrundfarbe, oder alternativ das Bild fur "MouseOver"</p><p> /* FireFox 3.6+: */</p><p> background: -moz-linear-gradient(top, #5a5a5a 0%, #dfe5d7 70%, #fcfff4 100%);</p><p></p><p> /* Chrome,Safari4+: */</p><p> background: -webkit-gradient(linear, left top, left bottom,</p><p> color-stop(0%,#5a5a5a), color-stop(70%,#dfe5d7), color-stop(100%,#fcfff4));</p><p></p><p> /* Chrome10+,Safari5.1+: */</p><p> background: -webkit-linear-gradient(top, #5a5a5a 0%,#dfe5d7 70%,#fcfff4 100%);</p><p></p><p> /* Opera 11.10+: */</p><p> background: -o-linear-gradient(top, #5a5a5a 0%,#dfe5d7 70%,#fcfff4 100%);</p><p></p><p> /* IE10+: */</p><p> background: -ms-linear-gradient(top, #5a5a5a 0%,#dfe5d7 70%,#fcfff4 100%);</p><p></p><p> /* W3C: */</p><p> background: linear-gradient(top, #5a5a5a 0%,#dfe5d7 70%,#fcfff4 100%);</p><p></p><p> /* IE6-9: */</p><p> filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#5a5a5a', endColorstr='#fcfff4',GradientType=0 );</p><p></p><p></p><p> /*Radien- Definition*/</p><p> -moz-border-radius-topleft: 5px;</p><p> -moz-border-radius-topright: 5px;</p><p> -moz-border-radius-bottomright: 5px;</p><p> -moz-border-radius-bottomleft: 5px;</p><p> -webkit-border-radius: 6px 6px 6px 6px;</p><p> border-radius: 6px 6px 6px 6px;</p><p></p><p> /*Schatten- Definintion*/</p><p> /*-webkit-box-shadow: 2px 2px 2px 2px #666;</p><p> -moz-box-shadow: 2px 2px 2px 2px #666;</p><p> box-shadow: 2px 2px 2px 2px #666; */</p><p></p><p> }</p><p></p><p>/*ul #navleft a .menubutton1</p><p> {</p><p> left: 0px;</p><p> top: 0px;</p><p> }</p><p></p><p>ul #navleft a .menubutton2</p><p> {</p><p> left: 0px;</p><p> top: 0px;</p><p> } */[/CODE]</p><p></p><p>...ich bin mitten im basteln, soll heissen die KLassen für die Buttons sind noch genauso drin, wie gerade die unteren beiden ul #navleft a .menubutton.....- definitionen auskommentiert sind.....</p></blockquote><p></p>
[QUOTE="Ranger1281, post: 1968922, member: 423351"] [b]AW: Linkbuttons via CSS3 definieren und einbinden[/b] ich habe nach Deinem Beispiel: [CODE]background: url(.menubutton1);[/CODE] und nachdem dies nicht ging auch [CODE]background: url(#menubutton1);[/CODE] eingebunden. Natürlich habe ich auch oben in der CSS beim 2. Versuch die Klasse, gegen die ID geändert. Leider wird der Button nicht angezeigt. Allerdings kämpfe ich gerade auch genau so mit ADcosmos Vorschlag... auch wenn ich direkt im UL die gradients definiere kommt nichts... irgendwo ist ein Fehler.... am besten setzte ich doch mal die beiden Codes ein: [HTML]<!--<?xml version="1.0" encoding="iso-8859-1"?> --> <!DOCTYPE html> <html> <head> <title>Familie Schepp</title> <meta name="description" content="" /> <meta name="keywords" content="" /> <meta name="author" content="Ralf Schepp" /> <meta name="robots" content="index, follow" /> <meta name="language" content="de" /> <meta name="DC.rights" content="Ralf Schepp" /> <link rel="shortcut icon" href="favicon.ico" /> <link rel="stylesheet" href="css/global.css" type="text/css" /> <link rel="stylesheet" href="css/header.css" type="text/css" /> <link rel="stylesheet" href="css/menu.css" type="text/css" /> <meta http-equiv="date" content="17.05.2012" /> <meta http-equiv="cache-control" content="no-cache" /> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="content-style-type" content="text/css; charset=iso-8859-1" /> <meta http-equiv="content-script-type" content="text/javascript; charset=iso-8859-1" /> </head> <body> <!-- Body --> <div id="body"></div> <!-- Header --> <div id="topbox"></div> <!-- Bilder im Header --> <div id="head_pic1"> <img src="img/Ralf360x360.jpg" alt="Ralf" border="0" width="120" height="120" /> </div> <div id="head_pic2"> <img src="img/Katja360x360.jpg" alt="Katja" border="0" width="120" height="120" /> </div> <div id="head_pic3"> <img src="img/Page360x360.jpg" alt="Page" border="0" width="120" height="120" /> </div> <div id="head_pic4"> <img src="img/Pimpsi120x120.jpg" alt="Pimpsi" border="0" width="120" height="120" /> </div> <div id="head_pic5"> <img src="img/Leon360x360.jpg" alt="Leon" border="0" width="120" height="120" /> </div> <div id="head_pic6"> <img src="img/Jonas360x360.jpg" alt="Jonas" border="0" width="120" height="120" /> </div> <div id="head_pic7"> <img src="img/Maray360x360.jpg" alt="Maray" border="0" width="120" height="120" /> </div> <div id="head_pic8"> <img src="img/Ponys120x120.jpg" alt="Bonito & Maya" border="0" width="120" height="120" /> </div> <!-- Textlogo im Header --> <div id="tlogo">Familie Schepp</div> <!-- Menu links --> <div id="menuleft"></div> <!--<div id="bhome"> <div class="menubutton1"> <a href="index.html">Startseite</a> </div> </div> --> <!-- Versuch --> <ul id="navleft"> <li><a href="index.html" id="bhome">Startseite</a></li> <li><a href="index.html" id="bbla">2. Seite</a></li> </ul> <!-- Menu oben --> <div id="menutop"></div> </body> </html>[/HTML] [CODE]/*------------ Menu oben ------------*/ #menutop { /*Box- Definition*/ position: fixed; left: 50%; margin-left: -600px; top: 230px; width: 1200px; height: 30px; /*Farb- Definintion*/ /* Alte Browser: */ background: #fcfff4; /* FireFox 3.6+: */ background: -moz-linear-gradient(top, #fcfff4 0%, #dfe5d7 30%, #5a5a5a 100%); /* Chrome,Safari4+: */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fcfff4), color-stop(30%,#dfe5d7), color-stop(100%,#5a5a5a)); /* Chrome10+,Safari5.1+: */ background: -webkit-linear-gradient(top, #fcfff4 0%,#dfe5d7 30%,#5a5a5a 100%); /* Opera 11.10+: */ background: -o-linear-gradient(top, #fcfff4 0%,#dfe5d7 30%,#5a5a5a 100%); /* IE10+: */ background: -ms-linear-gradient(top, #fcfff4 0%,#dfe5d7 30%,#5a5a5a 100%); /* W3C: */ background: linear-gradient(top, #fcfff4 0%,#dfe5d7 30%,#5a5a5a 100%); /* IE6-9: */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fcfff4', endColorstr='#5a5a5a',GradientType=0 ); /*Radien- Definition*/ -moz-border-radius-topleft: 7px; -moz-border-radius-topright: 7px; -moz-border-radius-bottomright: 7px; -moz-border-radius-bottomleft: 7px; -webkit-border-radius: 8px 8px 8px 8px; border-radius: 8px 8px 8px 8px; /*Schatten- Definintion*/ -webkit-box-shadow: 2px 2px 2px 2px #666; -moz-box-shadow: 2px 2px 2px 2px #666; box-shadow: 2px 2px 2px 2px #666; } /*------------ Menu links -----------*/ #menuleft { /*Box- Definition*/ position: fixed; left: 50%; margin-left: -600px; top: 280px; width: 200px; height: 400px; z-index: 2; /*Farb- Definintion*/ /* Alte Browser: */ background: #fcfff4; /* FireFox 3.6+: */ background: -moz-linear-gradient(top, #fcfff4 0%, #dfe5d7 30%, #5a5a5a 100%); /* Chrome,Safari4+: */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fcfff4), color-stop(30%,#dfe5d7), color-stop(100%,#5a5a5a)); /* Chrome10+,Safari5.1+: */ background: -webkit-linear-gradient(top, #fcfff4 0%,#dfe5d7 30%,#5a5a5a 100%); /* Opera 11.10+: */ background: -o-linear-gradient(top, #fcfff4 0%,#dfe5d7 30%,#5a5a5a 100%); /* IE10+: */ background: -ms-linear-gradient(top, #fcfff4 0%,#dfe5d7 30%,#5a5a5a 100%); /* W3C: */ background: linear-gradient(top, #fcfff4 0%,#dfe5d7 30%,#5a5a5a 100%); /* IE6-9: */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fcfff4', endColorstr='#5a5a5a',GradientType=0 ); /*Radien- Definition*/ -moz-border-radius-topleft: 14px; -moz-border-radius-topright: 14px; -moz-border-radius-bottomright: 14px; -moz-border-radius-bottomleft: 14px; -webkit-border-radius: 16px 16px 16px 16px; border-radius: 16px 16px 16px 16px; /*Schatten- Definintion*/ -webkit-box-shadow: 2px 2px 2px 2px #666; -moz-box-shadow: 2px 2px 2px 2px #666; box-shadow: 2px 2px 2px 2px #666; } /*------------ Menubuttons-----------*/ /*Menubutton1 - Standardansicht*/ .menubutton1 { /*Box- Definition*/ width: 180px; height: 25px; /*Farb- Definintion*/ /* Alte Browser: */ background: #fcfff4; /* FireFox 3.6+: */ background: -moz-linear-gradient(top, #fcfff4 0%, #dfe5d7 30%, #5a5a5a 100%); /* Chrome,Safari4+: */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fcfff4), color-stop(30%,#dfe5d7), color-stop(100%,#5a5a5a)); /* Chrome10+,Safari5.1+: */ background: -webkit-linear-gradient(top, #fcfff4 0%,#dfe5d7 30%,#5a5a5a 100%); /* Opera 11.10+: */ background: -o-linear-gradient(top, #fcfff4 0%,#dfe5d7 30%,#5a5a5a 100%); /* IE10+: */ background: -ms-linear-gradient(top, #fcfff4 0%,#dfe5d7 30%,#5a5a5a 100%); /* W3C: */ background: linear-gradient(top, #fcfff4 0%,#dfe5d7 30%,#5a5a5a 100%); /* IE6-9: */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fcfff4', endColorstr='#5a5a5a',GradientType=0 ); /*Radien- Definition*/ -moz-border-radius-topleft: 5px; -moz-border-radius-topright: 5px; -moz-border-radius-bottomright: 5px; -moz-border-radius-bottomleft: 5px; -webkit-border-radius: 6px 6px 6px 6px; border-radius: 6px 6px 6px 6px; /*Schatten- Definintion*/ -webkit-box-shadow: 2px 2px 2px 2px #666; -moz-box-shadow: 2px 2px 2px 2px #666; box-shadow: 2px 2px 2px 2px #666; } /*Menubutton2 - Hoveransicht*/ .menubutton2 { /*Box- Definition*/ width: 180px; height: 25px; /*Farb- Definintion*/ /* Alte Browser: */ background: #5a5a5a; /* FireFox 3.6+: */ background: -moz-linear-gradient(top, #5a5a5a 0%, #dfe5d7 70%, #fcfff4 100%); /* Chrome,Safari4+: */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#5a5a5a), color-stop(70%,#dfe5d7), color-stop(100%,#fcfff4)); /* Chrome10+,Safari5.1+: */ background: -webkit-linear-gradient(top, #5a5a5a 0%,#dfe5d7 70%,#fcfff4 100%); /* Opera 11.10+: */ background: -o-linear-gradient(top, #5a5a5a 0%,#dfe5d7 70%,#fcfff4 100%); /* IE10+: */ background: -ms-linear-gradient(top, #5a5a5a 0%,#dfe5d7 70%,#fcfff4 100%); /* W3C: */ background: linear-gradient(top, #5a5a5a 0%,#dfe5d7 70%,#fcfff4 100%); /* IE6-9: */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#5a5a5a', endColorstr='#fcfff4',GradientType=0 ); /*Radien- Definition*/ -moz-border-radius-topleft: 5px; -moz-border-radius-topright: 5px; -moz-border-radius-bottomright: 5px; -moz-border-radius-bottomleft: 5px; -webkit-border-radius: 6px 6px 6px 6px; border-radius: 6px 6px 6px 6px; /*Schatten- Definintion*/ /*-webkit-box-shadow: 2px 2px 2px 2px #666; -moz-box-shadow: 2px 2px 2px 2px #666; box-shadow: 2px 2px 2px 2px #666; */ } /*Position Home-Button*/ #bhome { position: fixed; left: 50%; margin-left: -590px; top: 330px; width: 180px; height: 30px; z-index: 3; font-family:'Comic Sans MS'; src:local('Comic Sans MS') url(fonts/comic.ttf) format(TrueType); font-size:10pt,12pt,14pt,16pt,18pt,20pt,24pt; text-align: center; } /*Position 2.Button*/ #bbla { position: fixed; left: 50%; margin-left: -590px; top: 365px; width: 180px; height: 30px; z-index: 3; font-family:'Comic Sans MS'; src:local('Comic Sans MS') url(fonts/comic.ttf) format(TrueType); font-size:10pt,12pt,14pt,16pt,18pt,20pt,24pt; text-align: center; } /*Navigation Menu links*/ ul #navleft { list-style: none; position: relative; z-index: 3; } ul #navleft a { text-decoration: none; display: block position: relative; //oder absolute width: 100px; height: 30px; z-index: 4; /*ALte Browser*/ background: #5a5a5a; //deine Hintergrundfarbe, oder alternativ das Bild fur "MouseOut" /* FireFox 3.6+: */ background: -moz-linear-gradient(top, #fcfff4 0%, #dfe5d7 30%, #5a5a5a 100%); /* Chrome,Safari4+: */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fcfff4), color-stop(30%,#dfe5d7), color-stop(100%,#5a5a5a)); /* Chrome10+,Safari5.1+: */ background: -webkit-linear-gradient(top, #fcfff4 0%,#dfe5d7 30%,#5a5a5a 100%); /* Opera 11.10+: */ background: -o-linear-gradient(top, #fcfff4 0%,#dfe5d7 30%,#5a5a5a 100%); /* IE10+: */ background: -ms-linear-gradient(top, #fcfff4 0%,#dfe5d7 30%,#5a5a5a 100%); /* W3C: */ background: linear-gradient(top, #fcfff4 0%,#dfe5d7 30%,#5a5a5a 100%); /* IE6-9: */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fcfff4', endColorstr='#5a5a5a',GradientType=0 ); /*Radien- Definition*/ -moz-border-radius-topleft: 5px; -moz-border-radius-topright: 5px; -moz-border-radius-bottomright: 5px; -moz-border-radius-bottomleft: 5px; -webkit-border-radius: 6px 6px 6px 6px; border-radius: 6px 6px 6px 6px; /*Schatten- Definintion*/ -webkit-box-shadow: 2px 2px 2px 2px #666; -moz-box-shadow: 2px 2px 2px 2px #666; box-shadow: 2px 2px 2px 2px #666; } ul #navleft a:hover { z-index: 4; /*Alte Browser*/ background: #fcfff4; //deine Hintergrundfarbe, oder alternativ das Bild fur "MouseOver" /* FireFox 3.6+: */ background: -moz-linear-gradient(top, #5a5a5a 0%, #dfe5d7 70%, #fcfff4 100%); /* Chrome,Safari4+: */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#5a5a5a), color-stop(70%,#dfe5d7), color-stop(100%,#fcfff4)); /* Chrome10+,Safari5.1+: */ background: -webkit-linear-gradient(top, #5a5a5a 0%,#dfe5d7 70%,#fcfff4 100%); /* Opera 11.10+: */ background: -o-linear-gradient(top, #5a5a5a 0%,#dfe5d7 70%,#fcfff4 100%); /* IE10+: */ background: -ms-linear-gradient(top, #5a5a5a 0%,#dfe5d7 70%,#fcfff4 100%); /* W3C: */ background: linear-gradient(top, #5a5a5a 0%,#dfe5d7 70%,#fcfff4 100%); /* IE6-9: */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#5a5a5a', endColorstr='#fcfff4',GradientType=0 ); /*Radien- Definition*/ -moz-border-radius-topleft: 5px; -moz-border-radius-topright: 5px; -moz-border-radius-bottomright: 5px; -moz-border-radius-bottomleft: 5px; -webkit-border-radius: 6px 6px 6px 6px; border-radius: 6px 6px 6px 6px; /*Schatten- Definintion*/ /*-webkit-box-shadow: 2px 2px 2px 2px #666; -moz-box-shadow: 2px 2px 2px 2px #666; box-shadow: 2px 2px 2px 2px #666; */ } /*ul #navleft a .menubutton1 { left: 0px; top: 0px; } ul #navleft a .menubutton2 { left: 0px; top: 0px; } */[/CODE] ...ich bin mitten im basteln, soll heissen die KLassen für die Buttons sind noch genauso drin, wie gerade die unteren beiden ul #navleft a .menubutton.....- definitionen auskommentiert sind..... [/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...
Linkbuttons via CSS3 definieren und einbinden
Oben