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...
css: hover img gallery
Beitrag
<blockquote data-quote="muhtsch" data-source="post: 2185508" data-attributes="member: 512558"><p>Hallo,</p><p>ich habe nur Grundkenntnisse in html/css ..habe einen 4Wochen Kurs belegt.</p><p>Auf meiner website habe ich eine lightbox eingebaut, die möchte ich tauschen gegen eine "hover img gallery". Das tutorial habe ich mir hier</p><p> durchgelesen. Nun möchte ich die thumbs aber nicht an der Seite sondern oben (wie auf der Demoseite gezeigt)</p><p>Kriege aber nicht raus wem und wo ich die Anweisung geben soll, damit die thumbs, wie auf dem Demobild oben sind...</p><p></p><p>Habe meine css größenmäßig etwas verändert und die sieht jetzt so aus:</p><p></p><p></p><p></p><p>[CODE] choose a suitable font and center the #container div in Internet Explorer </p><p>body {</p><p> text-align:center; </p><p> font-family: cambria; arial, sans-serif; </p><p> font-size:100%; </p><p> letter-spacing:1.5em;</p><p> }</p><p></p><p></p><p>/*border und groesse*/</p><p>#container {</p><p> position:relative; </p><p> width:1000px; </p><p> height:800px; </p><p> margin:10px auto 0 auto; </p><p> border:3px solid #adacad; </p><p> </p><p> background:#330033 url(images/nature/IMG_2579.jpg) 185px 185px no-repeat;</p><p> }</p><p> </p><p> </p><p>/* Removing the list bullets and indentation, evtl schon vorhanden und kann weg </p><p>#container ul {</p><p> padding:0; </p><p> margin:0; </p><p> list-style-type:none; </p><p> }*/ </p><p> </p><p>/* Remove the images and text from sight */</p><p>#container a.gallery span {</p><p> position:absolute; </p><p> width:1px; </p><p> height:1px; </p><p> top:5px; </p><p> left:5px; </p><p> overflow:hidden; </p><p> background:#fff;</p><p> } </p><p> </p><p> </p><p>/* Adding the thumbnail images */</p><p> #container a.gallery,#container a.gallery:visited {</p><p> display:block;</p><p> </p><p> color:#000; </p><p> text-decoration:none; </p><p> border:1px solid #adacad; </p><p> margin:1px 2px 1px 2px; </p><p> text-align:left; </p><p> cursor:default;</p><p> }</p><p>#container a.slidea {</p><p> background:url(images/nature/thumbs/CIMG4062.jpg); </p><p> height:60px; </p><p> width:60px;</p><p> }</p><p>#container a.slideb {</p><p> background:url(images/nature/thumbs/IMG_0701n.jpg); </p><p> height:60px; </p><p> width:60px;</p><p> }</p><p>#container a.slidec {</p><p> background:url(images/nature/thumbs/IMG_1296n.jpg); </p><p> height:60px; </p><p> width:60px;</p><p> }</p><p>#container a.slided {</p><p> background:url(images/nature/thumbs/IMG_5746.jpg); </p><p> height:60px; </p><p> width:60px;</p><p> }</p><p>#container a.slidee {</p><p> background:url(images/nature/thumbs/IMG_5948.jpg); </p><p> height:60px; </p><p> width:60px;</p><p> }</p><p>#container a.slidef {</p><p> background:url(images/nature/thumbs/IMG_5952n.jpg); </p><p> height:60px; </p><p> width:60px;</p><p> }</p><p>#container a.slideg {</p><p> background:url(images/nature/thumbs/IMG_6274n.jpg); </p><p> height:60px; </p><p> width:60px;</p><p> }</p><p>#container a.slideh {</p><p> background:url(images/nature/thumbs/krebs.jpg); </p><p> height:60px; </p><p> width:60px;</p><p> } </p><p> </p><p></p><p> </p><p>#container a.slidei {</p><p> background:url(images/nature/thumbs/IMG_2579.jpg); </p><p> height:60px; </p><p> width:60px;</p><p> } </p><p>#container a.slidek {</p><p> background:url(images/nature/thumbs/IMG_9530f.jpg); </p><p> height:60px; </p><p> width:60px;</p><p> } </p><p>#container a.slidel {</p><p> background:url(images/nature/thumbs/IMG_9562f.jpg); </p><p> height:60px; </p><p> width:60px;</p><p> } </p><p>#container a.slidem {</p><p> background:url(images/nature/thumbs/Kirschblüte1.jpg); </p><p> height:60px; </p><p> width:60px;</p><p> } </p><p> </p><p>#container a.sliden{</p><p> background:url(images/nature/thumbs/Selenicereus grandiflorus.jpg); </p><p> height:60px; </p><p> width:60px;</p><p> } </p><p> </p><p>/*</p><p> </p><p> </p><p>* html #container a.slided {</p><p> width:91px; </p><p> w\idth:93px;</p><p> }</p><p>#container a.slidee {</p><p> background:url(../images/p5_t.jpg); </p><p> height:60px; </p><p> width:93px;</p><p> }</p><p>#container a.slidef {</p><p> background:url(../images/p6_t.jpg); </p><p> height:60px; </p><p> width:93px;</p><p> }</p><p>* html #container a.slidef {</p><p> width:91px; </p><p> w\idth:93px;</p><p> }</p><p>#container a.slideg {</p><p> background:url(../images/p7_t.jpg); </p><p> height:60px; </p><p> width:93px;</p><p> }</p><p>#container a.slideh {</p><p> background:url(../images/p8_t.jpg); </p><p> height:93px; </p><p> width:60px;</p><p> }</p><p>#container a.slidei {</p><p> background:url(../images/p9_t.jpg); </p><p> height:93px; </p><p> width:60px;</p><p> }</p><p>#container a.slidej {</p><p> background:url(../images/p10_t.jpg); </p><p> height:93px; </p><p> width:60px;</p><p> }</p><p>#container a.slidek {</p><p> background:url(../images/p11_t.jpg); </p><p> height:60px; </p><p> width:93px;</p><p> }</p><p>* html #container a.slidek {</p><p> width:91px; </p><p> w\idth:93px;</p><p> }</p><p>#container a.slidel {</p><p> background:url(../images/p12_t.jpg); </p><p> height:60px; </p><p> width:93px;</p><p> } */</p><p> </p><p> </p><p>/* set the size of the unordered list to neatly house the thumbnails */</p><p>#container ul {</p><p> width:60px; </p><p> height:602px;</p><p> }</p><p>#container li {</p><p> float:right;</p><p> } </p><p> </p><p>/* move the thumbnails into the correct position */</p><p>#container ul {</p><p> margin:1px; </p><p> float:right;</p><p> } </p><p> </p><p>/* change the thumbnail border color */</p><p>#container a.gallery:hover {</p><p> border:1px solid #336600; </p><p> }</p><p></p><p> </p><p>/* styling the :hover span breite der gesanzeige*/</p><p>#container a.gallery:hover span {</p><p> position:absolute; </p><p> width:880px; </p><p> height:600px; </p><p> top:185px; </p><p> left:15px; </p><p> color:#adacad; </p><p> background:#330033;</p><p> } </p><p> </p><p>#container a.gallery:hover img {</p><p> border:1px solid #fff; </p><p> float:left; </p><p> margin-right:15px;</p><p> } </p><p>/* einzelne slide in neue position bringen</p><p>#container a.slideb:hover img, #container a.slidei:hover img {</p><p> float:bottom;</p><p> } */</p><p> </p><p>[/CODE]</p><p></p><p>Danke schon jetzt für Hilfe<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="muhtsch, post: 2185508, member: 512558"] Hallo, ich habe nur Grundkenntnisse in html/css ..habe einen 4Wochen Kurs belegt. Auf meiner website habe ich eine lightbox eingebaut, die möchte ich tauschen gegen eine "hover img gallery". Das tutorial habe ich mir hier durchgelesen. Nun möchte ich die thumbs aber nicht an der Seite sondern oben (wie auf der Demoseite gezeigt) Kriege aber nicht raus wem und wo ich die Anweisung geben soll, damit die thumbs, wie auf dem Demobild oben sind... Habe meine css größenmäßig etwas verändert und die sieht jetzt so aus: [CODE] choose a suitable font and center the #container div in Internet Explorer body { text-align:center; font-family: cambria; arial, sans-serif; font-size:100%; letter-spacing:1.5em; } /*border und groesse*/ #container { position:relative; width:1000px; height:800px; margin:10px auto 0 auto; border:3px solid #adacad; background:#330033 url(images/nature/IMG_2579.jpg) 185px 185px no-repeat; } /* Removing the list bullets and indentation, evtl schon vorhanden und kann weg #container ul { padding:0; margin:0; list-style-type:none; }*/ /* Remove the images and text from sight */ #container a.gallery span { position:absolute; width:1px; height:1px; top:5px; left:5px; overflow:hidden; background:#fff; } /* Adding the thumbnail images */ #container a.gallery,#container a.gallery:visited { display:block; color:#000; text-decoration:none; border:1px solid #adacad; margin:1px 2px 1px 2px; text-align:left; cursor:default; } #container a.slidea { background:url(images/nature/thumbs/CIMG4062.jpg); height:60px; width:60px; } #container a.slideb { background:url(images/nature/thumbs/IMG_0701n.jpg); height:60px; width:60px; } #container a.slidec { background:url(images/nature/thumbs/IMG_1296n.jpg); height:60px; width:60px; } #container a.slided { background:url(images/nature/thumbs/IMG_5746.jpg); height:60px; width:60px; } #container a.slidee { background:url(images/nature/thumbs/IMG_5948.jpg); height:60px; width:60px; } #container a.slidef { background:url(images/nature/thumbs/IMG_5952n.jpg); height:60px; width:60px; } #container a.slideg { background:url(images/nature/thumbs/IMG_6274n.jpg); height:60px; width:60px; } #container a.slideh { background:url(images/nature/thumbs/krebs.jpg); height:60px; width:60px; } #container a.slidei { background:url(images/nature/thumbs/IMG_2579.jpg); height:60px; width:60px; } #container a.slidek { background:url(images/nature/thumbs/IMG_9530f.jpg); height:60px; width:60px; } #container a.slidel { background:url(images/nature/thumbs/IMG_9562f.jpg); height:60px; width:60px; } #container a.slidem { background:url(images/nature/thumbs/Kirschblüte1.jpg); height:60px; width:60px; } #container a.sliden{ background:url(images/nature/thumbs/Selenicereus grandiflorus.jpg); height:60px; width:60px; } /* * html #container a.slided { width:91px; w\idth:93px; } #container a.slidee { background:url(../images/p5_t.jpg); height:60px; width:93px; } #container a.slidef { background:url(../images/p6_t.jpg); height:60px; width:93px; } * html #container a.slidef { width:91px; w\idth:93px; } #container a.slideg { background:url(../images/p7_t.jpg); height:60px; width:93px; } #container a.slideh { background:url(../images/p8_t.jpg); height:93px; width:60px; } #container a.slidei { background:url(../images/p9_t.jpg); height:93px; width:60px; } #container a.slidej { background:url(../images/p10_t.jpg); height:93px; width:60px; } #container a.slidek { background:url(../images/p11_t.jpg); height:60px; width:93px; } * html #container a.slidek { width:91px; w\idth:93px; } #container a.slidel { background:url(../images/p12_t.jpg); height:60px; width:93px; } */ /* set the size of the unordered list to neatly house the thumbnails */ #container ul { width:60px; height:602px; } #container li { float:right; } /* move the thumbnails into the correct position */ #container ul { margin:1px; float:right; } /* change the thumbnail border color */ #container a.gallery:hover { border:1px solid #336600; } /* styling the :hover span breite der gesanzeige*/ #container a.gallery:hover span { position:absolute; width:880px; height:600px; top:185px; left:15px; color:#adacad; background:#330033; } #container a.gallery:hover img { border:1px solid #fff; float:left; margin-right:15px; } /* einzelne slide in neue position bringen #container a.slideb:hover img, #container a.slidei:hover img { float:bottom; } */ [/CODE] Danke schon jetzt für Hilfe:) [/QUOTE]
Bilder bitte
hier hochladen
und danach über das Bild-Icon (Direktlink vorher kopieren) platzieren.
Zitate einfügen…
Authentifizierung
Wenn ▲ = 5, ▼ = 2 und ■ = 7, was ist ▲ × ▼ + ■?
Antworten
Start
Forum
Sonstiges
Webdesign, Webentwicklung & Programmierung
Webdesign: HTML/CSS, Responsive Design, Sass...
css: hover img gallery
Oben