Vi beklager. Denne artikel er ikke tilgængelig på dit sprog.

Use the Button web part

When you add a modern page to a site, you add and customize web parts, which are the building blocks of your page. This article focuses on the Button web part.

The Button web part lets you easily add a button to your page with your own label and link.

Button web part

Note: Some functionality is introduced gradually to organizations that have opted in to the Targeted Release program. This means that you may not yet see this feature or it may look different than what is described in the help articles.

Add the Button web part

  1. Go to the page where you want to add the Button web part.

  2. If your page is not already in edit mode, click Edit at the top right of the page.

    Hover your mouse above or below an existing web part and you'll see a line with a circled +, like this:

    Plus sign for adding web parts to a page

  3. Click +, and then search for and select Button from the list of web parts.

  4. Select Edit web part Web part edit button in the toolbar on the left.

  5. In the property pane on the right, enter your label text in the Label box.

    Enter your link in the Link box. Make sure your link starts with http://, https://, or mailto:  If your link is added without one of these protocols, https:// will be added for you.

  6. Under Alignment, choose how you want the button aligned (left, center, or right) within its column on the page.

    Button web part property pane

Button color

The button color is based on the site theme accent color, and cannot be changed independently of the site theme. To learn more about changing the site theme, see Change the look of your SharePoint site.

Har du brug for mere hjælp?

Udvid dine Office-færdigheder
Gå på opdagelse i kurser
Få nye funktioner først
Bliv Office Insider

Var disse oplysninger nyttige?

Tak for din feedback!

Tak for din feedback! Det lyder, som om det vil kunne hjælpe, hvis du bliver sat i forbindelse med en af vores Office-supportteknikere.