• Resolved Digital Splendid

    (@rajeevbagra2025)


    I am trying to use the feature of linking to page part. On my smartphone, I could see step 2, step 3, step 4 opening accurately but not step 1.

    On Windows 7, after clicking, the opened part is not accurate for all the four.

    Am I not putting code correctly?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • I didn’t go further than STEP 1, but I can see there’s more than one element with id="1".

    CSS #ID selectors, according to the CSS standard, must be UNIQUE and cannot start with a number.

    Now browsers are very forgiving on these rules, and I’m not entirely sure if the “must not start with a number” part matters in this case when you’re only using the IDs for anchor links.

    But when you have two (or more) elements with id="1" (ie you have two or more “anchors” with the same name) and you have a link pointing to #1, it shouldn’t be difficult to see why this will not work: which of the two (or more) sections should the browser jump to?

    My advice: use UNIQUE, DESCRIPTIVE names for ALL your IDs/anchors and link to these. step1 is a million times better than just 1.

    Good luck!

    Thread Starter Digital Splendid

    (@rajeevbagra2025)

    @gappiah I have renamed them from numeric to text and it is working. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Link to page part’ is closed to new replies.