Styling static pages
Please note that ICA-AtoM is no longer actively supported by Artefactual Systems.
Visit https://www.accesstomemory.org for information about AtoM, the currently supported version.
Basic styling of static pages can be achieved by including HTML and inline CSS code directly in the editing interface of AtoM. There are plenty of wonderful online tutorials and resources out there for instruction on HTML and inline CSS use, but a few basic examples commonly employed by ICA-AtoM users have been included here as an example.
Headers and subtitles
To bold a heading and increase its size, wrap the relevant text in
tags, like so: This is my header
.
For larger headings, use smaller numbers, such as
or
. Similarly, for smaller headers, use
or
.
Hyperlinks
This is my header
or
. Similarly, for smaller headers, use
or
.
Hyperlinks
or
.
Hyperlinks
To create external links on an AtoM static page, wrap the text you would like to act as a link in a hyperlink <a>
tag, and include the web address to which you would like the link to point, using the href=" "
- the http address would go in the quotations. Remember to close the element after the text you want to link.
For example, to include a link to the ICA-AtoM User manual, the code would appear as such:
This is a link to the <a href="https://www.ica-atom.org/doc/User_manual">ICA-AtoM User Manual</a>
The above code would appear like this on the static page:
This is a link to the ICA-AtoM User Manual
Images
If you have access to the server on which your AtoM instance is located (i.e., if you are hosting it yourself, or can ask the host provider to include a file for you), you can place images in a directory on the host server, and use a local URL to point to them. Images can then be used via the HTML <img>
image element, where the src=" "
points to the path of the image, similar to how the hyperlinks are used above. For example, if I wanted an image of rabbit, named "bunny.jpg" included on my static page, my code might look like this: <img src=".../path/to/bunny.jpg">
, where "/path/to" represents the internal URL path to the location of bunny.jpg on your host server.
<img>
image element in
tags, like this:
<img src=".../path/to/bunny.jpg">
NOTE: The HTML center element is deprecated in HTML 4.01, and is not supported in HTML 5. You can use inline CSS elements to acheive a centered image instead. Since an image position is relative to the rest of the layout, it is difficult to provide a single solution for centering images that will fit all use cases - please consult some online HTML and CSS resources for the best way of doing this.
Boxes and dividers
You can add styled boxes around text by wrapping content in the HTML
element, and then using inline CSS to modify the appearance of the box. For colors, use the HTML or RGB values for the color you would like to use, rather than generic names such as "red," "blue," etc - most browsers support a limited pallette of colors using names such as this, and the results may be inconsistent across browsers. There are many free HTML color wheels available that allow you to choose a color and copy its HTML# or RGB values; for example: http://www.colorpicker.com/
For a small centered box with a light blue color, I might use code such as this:
This is my styled div element. I can include a bunch of text content here but the width of the box will not exceed 500px, as I have specified in the inline CSS.
This is how the box will appear:
If you visit the ICA-AtoM demo site, and follow the instructions provided there to log in as an administrator (user: demo@example.com, pass: demo), you can click "edit" on the Welcome static page to see how Artefactual has styled the light yellow box warning users that the data will reset every half an hour. This is what the code looks like:
And here is the result:
---
Below a screen shot of a styled page, using some of the examples above, has been included. Following the screenshot, you will find a copy of the code used to style the page.