Lupen-Icon im Sende-Button. Einmal als Symbol und das andere Mal als Font-Icon
Last active
April 7, 2016 02:34
-
-
Save Perun/5e472a07d0853c8247174d0e5272a48b to your computer and use it in GitHub Desktop.
Lupen-Zeichen im Sende-Button
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="inhalt"> | |
<p>Zuerst der Sende-Button als <code>input</code>-Element, zuerst mit 🔍 (<code>&#128269;</code>)...</p> | |
<form> | |
<input name="suchfeld" tiitle="Das Suchwort eingeben" /> | |
<input name="suchbutton" type="submit" value="🔍" title="Suche starten" /> | |
</form> | |
<p>... und jetzt mit 🔎 (<code>&#128270;</code>):</p> | |
<form> | |
<input name="suchfeld" tiitle="Das Suchwort eingeben" /> | |
<input name="suchbutton" type="submit" value="🔎" title="Suche starten" /> | |
</form> | |
<p>In CSS wären diese Angaben entsprechend <code>'\1F50D'</code> bzw. <code>'\1F50E'</code> | |
<p>Das gleiche noch einmal, aber mit <code>button</code> anstatt <code>input</code> für den Sende-Button:</p> | |
<form> | |
<input name="suchfeld" title="Das Suchwort eingeben" /> | |
<button title="Suche starten">🔍</button> | |
</form> | |
<form> | |
<input name="suchfeld" title="Das Suchwort eingeben" /> | |
<button title="Suche starten">🔎</button> | |
</form> | |
<p>Und zu Letzt als Font-Icon von Font Awesome (<code><i class="fa fa-search"></i></code>):</p> | |
<form> | |
<input name="suchfeld" title="Das Suchwort eingeben" /> | |
<button title="Suche starten"><i class="fa fa-search"></i></button> | |
</form> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.inhalt {padding: 1rem;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" rel="stylesheet" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment