Html CSS Suchleiste, hilfe?

1 Antwort

Von Experte MrAmazing2 bestätigt

Solche Texte kann man mit dem Attribut placeholder hinzufügen.
https://www.w3schools.com/tags/att_input_placeholder.asp
https://www.w3schools.com/tags/tag_input.asp

<input type="text" placeholder="Suche nach Fragen, Themen und Nutzern…">
lllkrlrkewkrewr 
Fragesteller
 25.07.2021, 18:02

Danke, hab erst nach 10 minuten ausprobieren verstanden was du gemeint hast xD

                     <!-- Expandable Textfield -->
              <form action="#">
                <div class="mdl-textfield mdl-js-textfield mdl-textfield--expandable">
                  <label class="mdl-button mdl-js-button mdl-button--icon" for="sample6">
                    <i class="material-icons">search</i>
                  </label>
                  <div class="mdl-textfield__expandable-holder">
                    <input class="mdl-textfield__input" type="text" placeholder="HALLO" place id="sample6">
                    <label class="mdl-textfield__label" for="sample-expandable">Expandable Input</label>
                  </div>
                </div>
              </form>
0