PricingBlog

How can I use a link to set a scroll position like via #anchor

  • rscott-1205825761945325589

    Bishop

    1 year ago

    I need each of the side links (subsections) to scroll the middle div up to a particular spot
    1205825762138259506-Screenshot_2024-02-10_at_4.39.05_AM.png
  • rscott-1205897365584617572

    Bishop

    1 year ago

    ok this should make each div have an id='subsection'

    now how to scroll to it when clicking the submenus on the left
    1205897365366771802-Screenshot_2024-02-10_at_9.24.56_AM.png
  • rscott-1205902612008931379

    Bishop

    1 year ago

    well it works but it feels hacky
  • Tod-1205902616781922334

    Tod

    1 year ago

    Great energy @Bishop! Your continuous contribution to the toddle Community just made you advance to Community Level 8!
  • rscott-1205909386875244545

    Bishop

    1 year ago

    why would it shift the column to the right on one of these?
  • andreasmoller-1206511195951992852

    Andreas Møller

    1 year ago

    You can add scroll-behavior:smooth to the scroll container