Create buttons and action links
Stanford Sites provides a variety of link styles, including button and action link styles.
Add style to a link
- These styles will not be available until you first select a link. Select the link you wish to style.
- 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.
- Save.
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.
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:
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.
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.
Action Link style
The Action Link style adds an additional visual indication of a link.
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
- Type the button text for all of your buttons on one line, with a space between each button's text.
- Once all button text has been added on the same line, add the links and button styling.
- All of your buttons should now appear on one line.
Stacked buttons
- Type the button text for your first button, and press the enter/return key.
- 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.
- Once all button text has been added on separate lines, add the links and button styling.
- 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.
Related topics
Create Links
Learn about the options for adding links to any text area, including email links
Add Text Styles
Learn how to add styling to text