Brendon Branigin Posted January 15, 2006 Share Posted January 15, 2006 How would i go about making the current link unclickable EXAMPLEBill is on the about page and tries to click the link to the about page in the main navigation, how would i make it so that link isnt a linkthanks in advance Link to comment Share on other sites More sharing options...
Eric Posted January 15, 2006 Share Posted January 15, 2006 Remove the <a> tag?Then it's no longer a link, it's just plan textI really don't get what you mean by "a link that is not a link".Either it's a link or it isn't O_o Link to comment Share on other sites More sharing options...
Brendon Branigin Posted January 15, 2006 Author Share Posted January 15, 2006 Remove the <a> tag?Then it's no longer a link, it's just plan textI really don't get what you mean by "a link that is not a link".Either it's a link or it isn't O_o<{POST_SNAPBACK}> Ill try to explain it better: the following navigation followsHome About Products Contactthey are all text links styled with css, if a user is currently viewing the "About" page I dont want them to be able to click the about button Link to comment Share on other sites More sharing options...
boen_robot Posted January 15, 2006 Share Posted January 15, 2006 Ah, I see the point. I don't think there's any way to achieve this with CSS though. As Eric mentioned a link is either a link or isn't. The only things between are a hover link and an active link(a one that's been just clicked on).To achieve what you want you must either use some script that will identify the the current page and remove the "a" tag then, or manually remove the a tag on every XHTML at the appropriate places. Link to comment Share on other sites More sharing options...
Brendon Branigin Posted January 16, 2006 Author Share Posted January 16, 2006 Ah, I see the point. I don't think there's any way to achieve this with CSS though. As Eric mentioned a link is either a link or isn't. The only things between are a hover link and an active link(a one that's been just clicked on).To achieve what you want you must either use some script that will identify the the current page and remove the "a" tag then, or manually remove the a tag on every XHTML at the appropriate places.<{POST_SNAPBACK}> Alright, thanks for the information Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now