eLearning Center 2 Collin College
Alerts, Highlights, and Buttons
• Alerts
o <div class="alert alert-error"><strong>Error:</strong> This is a sample ERROR
alert style</div>
▪ <div class="alert alert-success"><strong>Success:</strong> This is a
sample SUCCESS alert style</div>
▪ <div class="alert alert-info"><strong>Information:</strong> This is a
sample INFORMATION alert style</div>
• Buttons
o <p><a id="" class="btn btn-success btn" style="width: 30%;"
href="https://community.canvaslms.com/docs/DOC-4852"
target="_blank">Canvas Styleguide: Buttons</a></p>
▪ btn-success produces a green button
▪ btn-primary produces a primary color consistent with your LMS
▪ btn-secondary produces a secondary color consistent with your LMS
▪ btn-warning produces an orange button
▪ btn-danger produces a red button
▪ style="width: 30%;" ensures consistent width when multiple buttons are
created. The 30% is 30% of the screen width.
• Popups
o <div id="dialog_for_link1" class="enhanceable_content dialog">Welcome to
Popups.</div>
<p><a id="link1" class="Button" href="#dialog_for_link1">Click Here to See A
Message</a></p>
• Flash Notice
o <div class="ic-flash-info">
<div class="ic-flash__icon" aria-hidden="true"><i class="icon-info"></i></div>
Info: Sample flash notice style. </div>
▪ <div class="ic-flash-warning"> <div class="ic-flash__icon" aria-
hidden="true"><i class="icon-warning"></i></div>
Warning: Sample flash notice style. <span class="screenreader-
only"></span> </div>
▪ <div class="ic-flash-error"> <div class="ic-flash__icon" aria-
hidden="true"><i class="icon-trash"></i></div>
Error: Sample flash notice style. <span class="screenreader-
only"></span></div> <div class="ic-flash-success">
<div class="ic-flash__icon" aria-hidden="true"><i class="icon-
check"></i></div>
Success: Sample flash notice style. <span class="screenreader-
only"></span> </div>