Using HTML
The HTML box gives you control over some of the layout of your page. Although you can use the HTML block to add/copy text for your exhibit, you can ALSO use the HTML block to write custom HTML code.
To use this function:
- Add an HTML block to your page
- Click your mouse in the html box as if you were going to add text
- Select the "Source" button when the formatting menu pops up. In the "Source" panel, you can write HTML code.
Using DIVs
DIVs are a powerful tool when designing exhibits in Omeka.
"Floating" DIVs
Although you do not have control over CSS in Omeka S, you can mimic the clear float element by giving your DIV 100% width. This prevents one item from overlapping with another item.
Code to use:
<div style="float:left;width: 100%;padding:10px;"><a draggable="false" href="http://omekas.library.uvic.ca/s/tutorial/html"><img draggable="false" src="http://omekas.library.uvic.ca/files/medium/f28b75f471b338202aa1ee15b612f658bfb3ab72.jpg" style="float:left;width=200px;padding:20px;" /></a>
<h2>H2 Title</h2>
<p><a draggable="false" href="http://omekas.library.uvic.ca/s/tutorial/html">Some Title</a></p>
<p><a draggable="false" href="http://omekas.library.uvic.ca/s/tutorial/html">some text</a></p>
</div>
What it looks like on the page:
Lorum Ipsum 1
"Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source...
Lorum Ipsum 2
Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32...
Creating "Columns" with your DIVs
To have your items appear "side" by side, choose how "wide" you want your div to be.
For two columns: 50%
For three columns: 33%
For four columns: 25%
<div style="float:left;width: 50%;padding:10px;"><a draggable="false" href="http://omekas.library.uvic.ca/s/tutorial/html"><img draggable="false" src="http://omekas.library.uvic.ca/files/medium/f28b75f471b338202aa1ee15b612f658bfb3ab72.jpg" style="float:left;width=200px;padding:20px;" /></a>
<h2>H2 Title</h2>
<p><a draggable="false" href="http://omekas.library.uvic.ca/s/tutorial/html">Some Title</a></p>
<p><a draggable="false" href="http://omekas.library.uvic.ca/s/tutorial/html">some text</a></p>
</div>
<div style="float:left;width: 50%;padding:10px;"><a draggable="false" href="http://omekas.library.uvic.ca/s/tutorial/html"><img draggable="false" src="http://omekas.library.uvic.ca/files/medium/f28b75f471b338202aa1ee15b612f658bfb3ab72.jpg" style="float:left;width=200px;padding:20px;" /></a>
<h2>H2 Title</h2>
<p><a draggable="false" href="http://omekas.library.uvic.ca/s/tutorial/html">Some Title</a></p>
<p><a draggable="false" href="http://omekas.library.uvic.ca/s/tutorial/html">some text</a></p>
</div>