How to put an anchor on a web part in a modern SharePoint page?

vrm 711 Reputation points
2023-05-04T18:52:07.6466667+00:00

I know that you can create anchors by formatting text as H1, H2, or H3. However, this introduces a lot of white space (too much white space). So, is there a way of getting an anchor associated with individual web parts? Thanks.

Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments
{count} votes

Accepted answer
  1. Xyza Xue_MSFT 30,176 Reputation points Microsoft External Staff
    2023-05-05T02:46:41.3633333+00:00

    Hi @vrm ,

    Per my knowledge, you can only create Page Anchors by formatting the text you want to link to as Heading (Heading 1, Heading 2, or Heading 3).

    What does "this introduces a lot of white space (too much white space)" mean? If convenient, can you provide a screenshot to illustrate?

    I followed the steps in this document to test (the test results are shown in the animation below), and there will be a little gap in the middle of each web part.

    Animation


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.