Layout classes
A guide to using the provided project files for your workshop
Boxes
Boxes are simple layout elements that add background color to an element. Use the .box
class on your HTML element to achieve this:
This is a box.
<div class="box">This is a box.</div>
This is also a box, but the colors are reversed
<div class="inverted box">This is also a box, but the colors are reversed</div>
This is another box, but with no background color.
<div class="transparent box">
This is another box, but with no background color.
</div>
Centered box
Centered box
<div class="center">Centered box</div>
Cluster
Normal cluster
Link 1
Link 2
Link 3
Link 4
Link 5
Link 6
Link 7
Link 8
Link 9
Link 10
Link 11
Link 12
Link 13
Link 14
Link 15
<div class="cluster">
<a href="#!" class="box">Link 1</a>
<a href="#!" class="box">Link 2</a>
<a href="#!" class="box">Link 3</a>
...
</div>
Spaced cluster
Items will be distributed in the available space.
Link 1
Link 2
Link 3
Link 4
Link 5
Link 6
Link 7
Link 8
Link 9
Link 10
Link 11
Link 12
Link 13
Link 14
Link 15
<div class="spaced cluster">
<a href="#!" class="box">Link 1</a>
<a href="#!" class="box">Link 2</a>
<a href="#!" class="box">Link 3</a>
...
</div>
End-justified cluster
Items will be aligned to the end of the screen.
Link 1
Link 2
Link 3
Link 4
Link 5
Link 6
Link 7
Link 8
Link 9
Link 10
Link 11
Link 12
Link 13
Link 14
Link 15
<div class="end-justified cluster">
<a href="#!" class="box">Link 1</a>
<a href="#!" class="box">Link 2</a>
<a href="#!" class="box">Link 3</a>
...
</div>
Center-justified cluster
Items will be aligned to the center of the screen.
Link 1
Link 2
Link 3
Link 4
Link 5
Link 6
Link 7
Link 8
Link 9
Link 10
Link 11
Link 12
Link 13
Link 14
Link 15
<div class="center-justified cluster">
<a href="#!" class="box">Link 1</a>
<a href="#!" class="box">Link 2</a>
<a href="#!" class="box">Link 3</a>
...
</div>
Sidebar
<div class="with-sidebar">
<div class="sidebar box">
<!-- Your sidebar -->
</div>
<div class="not-sidebar">
<!-- Your main content -->
</div>
</div>