How to disable a hyper link <A>

This is a discussion on "How to disable a hyper link <A>" within the Web Page Design section. This forum, and the thread "How to disable a hyper link <A> are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Nov 8th, 2005, 19:15
New Member
Join Date: Jul 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
How to disable a hyper link <A>

Can I disable a hyperlink using css etc.

For print preview functionality I am displaying a html screen using a different style sheet. The page has got hyper links, i have added style to show it as normal black text instead of the general blue underlined text. But the link is still clickable, which is creating problem. So I am looking for a way to disable all the hyper link on the page, any css style would be greate, but could not find one.
Reply With Quote

  #2 (permalink)  
Old Nov 8th, 2005, 21:47
Most Reputable Member
Join Date: Aug 2005
Location: North Wales, United Kingdom
Age: 21
Posts: 1,093
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sypher
Re: How to disable a hyper link <A>

You could use php do do a preg_replace
Reply With Quote
  #3 (permalink)  
Old Nov 9th, 2005, 10:46
Junior Member
Join Date: Apr 2005
Location: Llanelli, South Wales
Age: 28
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to markj Send a message via MSN to markj Send a message via Yahoo to markj
Re: How to disable a hyper link <A>

Do you want them still to be displayed? If not you could do
Code: Select all
a{
display:none;
}
Reply With Quote
  #4 (permalink)  
Old Nov 10th, 2005, 04:11
New Member
Join Date: Jul 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: How to disable a hyper link <A>

Thanks for the replies,

I still need to display the link text, but it should behave as normal text.


Quote:
Originally Posted by markj
Do you want them still to be displayed? If not you could do
Code: Select all
a{
display:none;
}
Reply With Quote
Reply

Tags
disable, hyper, link, ltagt

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Right click disable.. tipgal JavaScript Forum 6 Feb 10th, 2008 18:46
disable two inputs smudge618 JavaScript Forum 2 Feb 7th, 2008 15:24
hyper link problem jessina Web Page Design 2 Apr 19th, 2007 15:40
Disable button Nick JavaScript Forum 26 Jan 29th, 2005 07:20


All times are GMT. The time now is 04:10.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43