Lodius2000 Posted June 16, 2008 Share Posted June 16, 2008 Hi all I am trying to take a link's ability to link away from a link by converting it to normal text ie, I am working on pagination for my blog and the navigation looks like this << Prev | 1-5 | 6-10 | Next>> its all done in php that i got from a book, but anyway, the script references a span class="inactive" so that when you are viewing 1-5 both the << Prev and 1-5 links are grayed out, since there is page previous to the page that displays 1-5 there is no need for that to be a link, nor is there a need for 1-5 to be a link since we are already there what i need is the style that would remove the linking property of those links and i got no ideas, Im bad in php and even worse in css Thanks in advance Quote Link to comment Share on other sites More sharing options...
haku Posted June 16, 2008 Share Posted June 16, 2008 There isn't such a thing. All you do is in your php output, you don't output the anchor (<a>) tags, you just output the text inside them. You can also wrap a span around them as suggested, as that will enable you to style the inactive links in whatever way you want. You could also re-style the link so that the mouse changes to the text bar rather than the hand when it goes over the link, and format the text in black (or whatever the text color is on your site). This won't prevent the links from working, but it will appear to most people that the text isn't a link, even though it really is. Quote Link to comment Share on other sites More sharing options...
TheFilmGod Posted June 17, 2008 Share Posted June 17, 2008 Although the link is unnecessary, it would confuse users to completely take it out. Simply gray it out and deactivate the underlining for that link. Quote Link to comment Share on other sites More sharing options...
haku Posted June 18, 2008 Share Posted June 18, 2008 I don't think that it would confuse users, as the default is to not make it a link on most sites (including this one!). Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.