Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jul 2007
    Thanked 0 Times in 0 Posts

    Headings, navigation bar

    I have two classes for headings on my webpage - heading and headingfirst, the latter having a reduced topmargin. Ideally I would like, whenever there is text within this class, for there to be automatically placed a named anchor there and also a hyperlink to this anchor at the top of the page (with a | to separate entries).

    Again, am i going to have to use XML for this? I have never used this before, and would ideally like something I can shove in the middle of my HTML code. Can you do that with XML?


  • #2
    Senior Coder Arbitrator's Avatar
    Join Date
    Mar 2006
    Splendora, Texas, United States of America
    Thanked 292 Times in 286 Posts
    This is not possible with purely with HTML or CSS. However, if you add JavaScript, you can do it. With regards to XML, yes, you can do this with XSLT.
    For every complex problem, there is an answer that is clear, simple, and wrong.


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts