HTML: Buttons

Create buttons to heighten the visual appeal of your content pages.

 

Steps to Adding Buttons

1. In your content page, click Edit and create the hyperlink for any website you'd like (within Canvas or not) using the Rich Content Editor.

2. Switch to the HTML Editor. Your code will look something like this:

<p><a href="http://youtube.com">YouTube</a></p>

 

3. Add the missing code (highlighted in yellow) after "<p><a" to turn the link into a button:

<p><a id="" class="Button" href="http://youtube.com">YouTube</a></p>

 

To change the button style, add the missing modifier (see chart) to the code (highlighted in yellow):

<p><a id="" class="Button Button--primary" href="http://youtube.com">YouTube</a></p>

 

Modifier Button
Button--primary Screen Shot 2017-06-07 at 1.08.15 PM.png
Button--secondary Screen Shot 2017-06-07 at 1.08.23 PM.png
Button--success Screen Shot 2017-06-07 at 1.08.29 PM.png
Button--warning Screen Shot 2017-06-07 at 1.08.35 PM.png
Button--danger Screen Shot 2017-06-07 at 1.08.42 PM.png

 

Back to HTML Homepage