Building your Course
3. Book: Adding Tables, Images and a Box around Text
In the next three sections, we'll take a closer look at how to add different features to your book. Let's begin by adding a box to highlight text, adding a table and/or adding images.
Highlighting Text by Adding a Box
You might want to highlight some text by adding a box around it.
To add a box around text, while you are editing your book go to Tools/Source code Pro in the text editor’s menu or click on the Source code Pro icon.
Go to the point on the page where you want to add the box and copy in one of the lines of HTML code below:
<div style="width: 200px; border: 1px solid black; border-radius: 5px; padding: 10px; margin: 10px;"><p> This is a basic box with a black border and some text inside it.</p></div>
<div style="width: 200px; border: 2px solid black; border-style: dotted; padding: 10px; margin: 10px;"><p> This is a basic box with a black dotted border and some text inside it.</p></div>
<div style="width: 200px; border: thick red; border-style: dashed; padding: 10px; margin: 10px;"><p> This is a basic box with a red dashed border and some text inside it.</p></div>
<div style=" width: 200px; border: 5px double black; padding: 10px; margin: background-color: lavender"><p> This is a basic box with a double black border and some text inside it.</p></div>
<p style="border-left: 5px solid blue"> This is a blue left border and some text.</p>
Then click on the Save button.
These are just some examples of the many available style options for boxes. If you are familiar with HTML you can use your own styles, or you can adjust the width, border size, border colour, padding, margin, border corners, background colour and border type in these examples using standard inline CSS.
(If you’re new to the subject, W3CSchools CSS tutorial is a good starting point.)
Adding a Table
You can add a table into a book’s page. Creating a table is preferable to adding an image of a table, which would not be accessible.
Click in the Text field in the position where you want the table to appear. Go to Table/Table in the text editor’s menu and ‘draw’ the number of rows and columns you want the table to have.
When you are adding text to the table’s cells an additional functions menu appears: Table properties, Delete table, Insert row before, Insert row after, Delete row, Insert column before, Insert column after and Delete column. These functions (and others) are also available if you go to Table in the text editor’s menu.
For accessibility we recommend that you either add a caption above the table or briefly describe the contents of the table in the paragraph before it (e.g. ‘The following table shows ,,,’).
Adding an Image
You may need to add images into book pages.
To add an image, click in the Content field in the position where you want the image to appear. Go to Insert/Image in the text editor’s menu or click on the Image icon.
This will open a new pop-up window with the heading Image. Click on the Browse repositories button.
Click on the Upload a file link, click on the Choose File button and navigate to the image you want to add. Ideally, the image should be no wider than 600 pixels.
Add the name of whoever created or owns the image in the Author box and select the appropriate licence in Choose licence. If the image is yours, is a logo or belongs to a company or organisation, choose All rights reserved. If it’s an image from a photo stock website, select whichever Creative Commons licence is attached to the image.
Click on Upload this file to open the Image details window.
If it’s a figure, describe the image in the How would you describe this image to someone who can’t see it? box. There’s a limit of 750 characters.
If it’s a decorative image, tick the box next to This image is decorative only.
Click on Save.
The image will appear in the text and media area along with any text already there.
If the image you’re adding is a figure you should also add a figure number and a caption underneath it.
Click on Save and return to course.
If you want to update the image, click on the icon of three vertical dots next to the text and media area and click on Edit settings from the drop-down menu. If you click on the image in the Textfield and then click on the Image icon, the Image details window will appear.
You may find that 750 characters is not enough to fully describe an image that you have added and to make the image truly accessible for any of your learners that rely on a screen reader. If you need to add more text to whatever you wrote in the How would you describe this image to someone who can’t see it? box, you will need to go into HTML view to edit your text. While you are editing your book click go to Tools/Source code Pro in the text editor’s menu or click on the Source code Pro icon.


