Makzan / I share what I learned

Gray highlight and active state in mobile Safari

Link: CSS-Tricks: Remove Gray Highlight When Tapping Links in Mobile Safari

This is a simple tricks but very useful if you’re trying to make a button in HTML looks like a real button in touch devices.Remove the tap highlight:

and make the :active state works when user touches that element:


Published on 2015-03-18. More articles like this:
- Clip & Quote
- CSS
- Web Technologies

Previous <- CSS Quantity Selector
Next -> Lazy Design