tags:

views:

69

answers:

2

is there any way, to disable a tag?


i want to disable the menu's lik, if it is already set (something like disabled = "disabled"). i can remove a at all by php, but i have styled it already, so i want to save it, only disable. is it possible? thanks

+2  A: 

Nope, there is no CSS-only way known to me to disable a link the way you describe.

The only thing that comes to mind is putting an additional, transparent element in front of the link, but that can't be achieved in pure CSS, either.

How about giving it a href='#' onclick='return false' when generating them in PHP?

Pekka
@Pekka it is something what i want. thanks much.i even don't need href='#', that's enough onclick='return false';)
Syom
@Syom you're welcome. You should use `href='#'` as well, though, for users who have JavaScript disabled.
Pekka
@Pekka yes, you're true. i don't thought about it:( ;)
Syom
A: 

you could also use the css property display:none;

Gabriel