Nutzen von Platzhalter

About the template and stylesheet - and changing the menu
Post Reply
Tata
Posts: 3586
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Nutzen von Platzhalter

Post by Tata » Fri Jan 27, 2017 5:14 pm

Jemand hat es hier im Forum einmal gefragt (habe kein Lust den Post zu suchen) wie ein Platzhalter nutzen.
Heute habe ich interessane Hinweise bekommen: https://css-tricks.com/almanac/selector ... der-shown/
Der trick sieht etwa so:

Code: Select all

<label for="school">School Name:</label>
<input placeholder="Forest Hills Example High School" type="text" name="school" id="school">
und CSS

Code: Select all

input:placeholder-shown {
  border: 3px solid red;
} 
Dass mag wohl das sein, was hier angesprochen wurde.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

Post Reply