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...
Problem mit Link-Button
Beitrag
<blockquote data-quote="blizzart88" data-source="post: 1906718"><p>Guten abend allerseits,</p><p></p><p>ich soll einem Kumpel einen Button auf eine Internetseite setzen, der auf ein pdf-File verlinkt. Soweit so gut. Nur gelingt mir das ganze nur, wenn ich das Image des Button in den a-Tag schreibe, also der Link ein Image ist. Gibt es da eine CSS-Lösung, da ich noch ein hover-Image habe, das geladen werden soll.</p><p></p><p>Ich habe zwar schon ein wenig rumprobiert und gegoogled, aber nichts brauchbares zu Tage gebracht.</p><p></p><p>Vielleicht kann mir hier jemand helfen.</p><p></p><p>Link der aktuellen Lösung: </p><p></p><p>Meine vermurksten Versuche: </p><p></p><p>und meine missglückten CSS-Versuche:</p><p> </p><p>[CODE]</p><p>a.buttonflyer {width: 304px;</p><p> height: 154px;</p><p> background-image:url(../../images/buttonflyer.png);</p><p> line-height: 154px;</p><p> text-indent: -9999px;}</p><p> </p><p>a.buttonflyer:hover {width: 304px;</p><p> height: 154px;</p><p> background-image:url(../../images/buttonflyer-hover.png);</p><p> line-height: 154px;</p><p> text-indent: -9999px;}</p><p> </p><p>#buttonflyer li {float: left;} </p><p> </p><p>#buttonflyer {margin-left: 50%;</p><p> padding: 0;</p><p> list-style-type: none;</p><p> } </p><p> </p><p>#buttonflyer a.buttonflyer {</p><p> width: 304x;</p><p> height: 154px;</p><p> display: block;</p><p> color: #fff;</p><p> background-image: url(../../images/buttonflyer.jpg);</p><p> background-color: #BA1414;</p><p> text-align: center;</p><p> line-height: 154px;</p><p> border: none;</p><p> text-indent: -9999px;</p><p> }</p><p> </p><p></p><p>#buttonflyer a.buttonflyer:hover {background-color: #33f;</p><p> background-image: url(../../images/buttonflyer-hover.jpg);}</p><p></p><p>[/CODE]</p><p></p><p></p><p></p><p>Wäre schön, wenn mir jemand auf die Schnelle helfen könnte. Danke schonmal im Voraus!</p><p></p><p></p><p>PS: der konfuse Quellcode der Website mit DIV-Boxen im Tabellenlayout ist nicht von mir.</p></blockquote><p></p>
[QUOTE="blizzart88, post: 1906718"] Guten abend allerseits, ich soll einem Kumpel einen Button auf eine Internetseite setzen, der auf ein pdf-File verlinkt. Soweit so gut. Nur gelingt mir das ganze nur, wenn ich das Image des Button in den a-Tag schreibe, also der Link ein Image ist. Gibt es da eine CSS-Lösung, da ich noch ein hover-Image habe, das geladen werden soll. Ich habe zwar schon ein wenig rumprobiert und gegoogled, aber nichts brauchbares zu Tage gebracht. Vielleicht kann mir hier jemand helfen. Link der aktuellen Lösung: Meine vermurksten Versuche: und meine missglückten CSS-Versuche: [CODE] a.buttonflyer {width: 304px; height: 154px; background-image:url(../../images/buttonflyer.png); line-height: 154px; text-indent: -9999px;} a.buttonflyer:hover {width: 304px; height: 154px; background-image:url(../../images/buttonflyer-hover.png); line-height: 154px; text-indent: -9999px;} #buttonflyer li {float: left;} #buttonflyer {margin-left: 50%; padding: 0; list-style-type: none; } #buttonflyer a.buttonflyer { width: 304x; height: 154px; display: block; color: #fff; background-image: url(../../images/buttonflyer.jpg); background-color: #BA1414; text-align: center; line-height: 154px; border: none; text-indent: -9999px; } #buttonflyer a.buttonflyer:hover {background-color: #33f; background-image: url(../../images/buttonflyer-hover.jpg);} [/CODE] Wäre schön, wenn mir jemand auf die Schnelle helfen könnte. Danke schonmal im Voraus! PS: der konfuse Quellcode der Website mit DIV-Boxen im Tabellenlayout ist nicht von mir. [/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...
Problem mit Link-Button
Oben