At 5/5/2010 11:32 PM, Chris Blake wrote: >I have a Joomla module installed that feeds articles into a small >block. The module lets me choose show or hide the 'read more' link, >which I have hidden. For now I do not want people to click on the >title or read more link to go the article, it is simply for show. >However the title is still clickable and I don't want it to be. Is >there anyway to disable a link via CSS? I want to display it, just not >have it working as a link. > >I have thought that an option (trick) could be to remove text >decoration of underline on rollover and possibly change the cursor to >be ?? (the standard one when hovering over normal text). At least this >way user will not see the cursor for link, and not try clicking.
Making a link not a link and making a link not look like a link are two very different things. Even if the titles don't look or act like links, some people may click on them anyway by accident or out of habit, and if that breaks your site then styling them isn't a sufficient solution. That said, one way to disable a link in CSS is to cover it with a transparent layer that itself isn't clickable. Consider also that some user agents may not be interpreting CSS and if your links are present in the markup then they will probably be spidered by search engines, leading readers to the linked pages even if they can't get there from your styled page. I think a much better approach to the problem would be simply to manipulate the markup coming down from the server. Regards, Paul __________________________ Paul Novitski Juniper Webcraft Ltd. http://juniperwebcraft.com ______________________________________________________________________ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/