Skip to main content Skip to secondary navigation

Create buttons and action links

Main content start

Stanford Sites provides a variety of link styles, including button and action link styles.

Add style to a link

  1. These styles will not be available until you first select a link. Select the link you wish to style. 
  2. From the Style dropdown in the Text Area toolbar, select a link style of your choice. Styles include Button, Big Button, Secondary Button, and Action Link. 
  3. Save.
Screenshot illustrating Creating buttons and action links
Screenshot illustrating Creating buttons and action links

Types of button links

Button link

The Button link style can be applied to any link you have already created and can be found in the "Styles" dropdown in the editing tool. Use the Button link style to call out a link prominently on the screen. 

Button Link style 

Big Button link

The Big Button link style can be applied to any link you have already created and can be found in the "Styles" dropdown in the editing tool. Use the Big Button link style to call out a link even more prominently on the screen. We recommend reserving the use of this button to links that require significant visual contrast. Maybe one or two instances on your site could solicit the need for this button style:

Big button Link style

Secondary Button link

The Secondary Button link style can be applied to any link you have already created and can be found in the "Styles" dropdown in the editing tool. Use the Secondary Button style for any link that requires prominence, but not as much as a solid-color button. A Secondary Button could be one that provides a second option to users that may not be the primary user task. An example of this could be listing an "Apply" button using the default Button link style, followed by a "Learn more about admissions" button using the Secondary Button link style.

Secondary button link style

Text Link style

This is the styke that will automatically appear after you have selected text and turned it into a link. Use this sttke inside paragraphs of text, or as a link by itself.

Text link style

Action Link style

The Action Link style adds an additional visual indication of a link.

Action Link style with caret

Working with Buttons

By default, buttons added to a text area that are enclosed within the same paragraph tag (<p>) appear inline (on the same line). Through editing the text source code directly, experienced editors can modify the button layout further.

Placing multiple buttons

You can place multiple buttons inline and stacked.

Inline buttons

  1. Type the button text for all of your buttons on one line, with a space between each button's text.
  2. Once all button text has been added on the same line, add the links and button styling.
  3. All of your buttons should now appear on one line.

Button 1 Button 2 Button 3

Stacked buttons

  1. Type the button text for your first button, and press the enter/return key.
  2. Continue adding button text in this manner for all buttons you would like to be spaciously stacked together. Pressing the enter/return key ensures that additional buttons will be enclosed within their own paragraph.
  3. Once all button text has been added on separate lines, add the links and button styling.
  4. Buttons should now appear spaciously stacked.

Keep in mind that buttons adjust automatically to the width of the link text, so buttons may not all be the same size.

Example Button 1

Example Button 2

Example Button 3

Related topics

Learn about the options for adding links to any text area, including email links
Cards are a great way to highlight information, display calls to action or provide prominent links to other pages or sites