By
09/03/2016   Comments Off on Disable Anchor Link with CSS

View all snippets

I never new this simple property. I was actually using JS to do disable links. But this is so simple.

.home > a { 
   pointer-events: none; cursor: default; 
}