HTML5 placeholder, CSS i reszta świata

13 Dec, 2011 · by macem in CSS · tags placeholder HTML5 TODO

Jak oscylować element HTML5 - kontrolkę, która zawiera atrybut 'placeholder'=string?. Niby prosta sprawa, niestety nie jest to obsługiwane przez większość przeglądarek, nawet Operę czy Safari. Zatem dodajmy kilka specyficznych reguł w CSS.

input::-webkit-input-placeholder {
    color: #c30;
}
input:-moz-placeholder {
    color: #c30;
}

W takiej postaci obsługujemy Chrome i Firefoxa.

Niestety na resztę świata musimy poczekaj... dlatego wrzucam tag TODO.

Discussion

  • 1.
    buy backlink
    06 Fab, 2012

    hiya macem.net admin discovered your website via yahoo but it was hard to find and I see you could have more visitors because there are not so many comments yet. I have discovered website which offer to dramatically increase traffic to your website http://xrumerservice.org they claim they managed to get close to 1000 visitors/day using their services you could also get lot more targeted traffic from search engines as you have now. I used their services and got significantly more visitors to my website. Hope this helps :) They offer most cost effective backlinks Take care. Jason

Dodaj komentarz :

* - required