Skip to content Skip to main menu Skip to utility menu

Highlight text with a coloured box Task

Switch to text view on the editing screen. Then paste the lines of code below and insert your text in the middle.

<div class="alert alert-info">
...your block of text...
</div>

Use the following text in place of alert-info to get different colours:

alert-info
alert-success
alert-warning
alert-danger