CSS

How to disable link using CSS

Sometime need to disable a link using CSS. This can be done by using a small code of CSS. Below i will show different Scenarios: Disable link that has an exact href: = You can choose to disable links that contain a specific href value like so : <a href=”//website.com/exact/path”>Exact path</a> [href=”//website.com/exact/path”]{ pointer-events: none; } Disable

How to disable link using CSS Read More »

Easily Style Your Placeholder Text

Placeholder text in inputs has (in the browsers implementing it so far) a light gray color. To style it, you’ll need vendor prefix CSS properties. ::-webkit-input-placeholder { color: red; } :-moz-placeholder { /* Firefox 18- */ color: red; } ::-moz-placeholder { /* Firefox 19+ */ color: red; } :-ms-input-placeholder { color: red; }   The ::placeholder selector

Easily Style Your Placeholder Text Read More »