homepage Welcome to WebmasterWorld Guest from 174.129.103.100
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
link to an anchor that already links to another anchor
I want to change the an anchor that the original web developer placed
hopeless in cnp




msg:4324140
 4:38 pm on Jun 9, 2011 (gmt 0)

I want to change the link and the anchor it points to that my web developer has put in place. I am quite capable of working with html on my individual pages, but not so confident with CSS. I think he coded the link and the anchor in CSS, and I'm afraid to mess with it. On one page, I have one-liner comments that link to another page showing the comments in full. He has the link anchored to the comment heading -- I want the link to point to an individual comment. <snip> The one-liners are on the About Us page. Ultimately what I want is, when a visitor clicks on a one-liner comment, it will take them directly to the full comment.
Thanks!

[edited by: engine at 2:32 pm (utc) on Feb 3, 2012]

 

lucy24




msg:4324230
 7:38 pm on Jun 9, 2011 (gmt 0)

Whoops, got an extra > right before the close of the very first link. Also a whole duplicate </a>. And, interestingly, a matching > at the end of the corresponding comment. Also forgot to encode ampersands in names (John & Mary needs to be John &amp; Mary).

This is definitely not a CSS question; that only concerns the styling of the links, and they're all the same.

If it were an HTML question, the answer would be to anchor the comments individually, with links to match: #tenant1, #tenant2 and so on.

But this almost certainly isn't an HTML question either. It's a php question. That is, your web developer didn't actually make the page that you see before you. He made php code that builds the page dynamically. Without seeing that code, it's impossible to know what would be involved in changing the anchors.

Huh. I had no idea you could link to an id that wasn't inside an <a>. Link checker didn't bat an eye, though it did-- ahem-- find a couple of bad links.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved