Typography
GRID SYSTEM COLUMNS
Create a fully responsive, fluid and nestable grid layout.
The grid system of UIkit follows the mobile-first approach and accomodates up to 10 grid columns. It uses units with predefined classes inside each grid, which define the column width.
Usage
To create the grid container, add the .uk-grid
class to a parent element. Add one of the .uk-width-*
classes to child elements to determine, how the units shall be sized. The grid supports 1, 2, 3, 4, 5, 6 and 10 unit divisions. This table gives you an overview of the uk-width-*
classes that can be applied to units.
Class | Description |
---|---|
.uk-width-1-1 |
Fills 100% of the available width. |
.uk-width-1-2 |
Divides the grid into halves. |
.uk-width-1-3 to .uk-width-2-3 |
Divides the grid into thirds. |
.uk-width-1-4 to .uk-width-3-4 |
Divides the grid into fourths. |
.uk-width-1-5 to .uk-width-4-5 |
Divides the grid into fifths. |
.uk-width-1-6 to .uk-width-5-6 |
Divides the grid into sixths. |
.uk-width-1-10 to .uk-width-9-10 |
Divides the grid into tenths. |
We built an intentional redundancy into each set of unit classes, so that for instance the .uk-width-5-10
class will work just as well as .uk-width-1-2
.
Example
Take a closer look at the following grid example, which gives you a great overwiew of all basic .uk-width-*
classes.
.uk-width-1-3
.uk-width-1-3
.uk-width-1-3
.uk-width-1-2
.uk-width-1-2
.uk-width-3-10
.uk-width-7-10
Markup
Here is a simple code example of how the default grid with 2 columns would look like:
<div class="uk-grid"> <div class="uk-width-1-2">...</div> <div class="uk-width-1-2">...</div> </div>
Headings
Title H1
Title H2
Title H3
Title H4
Title H5
Title H6
BlockQuotes
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. 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. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
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. 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. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
DROPCAPS
Daus ipsum ex vix illud nonummy, novum tation et his. At vix scriptaset patrioque scribentur, at pro fugit erts verterem molestiae Lorem ipsum ex vix illud nonummy, novum tation et Quisque sed velit aliquam diam pulvinar placerat. Sed vitae magna lectus. Mauris quam libero, pellentesque quis tristique eu, accumsan eu massa. Sed sed nulla nec ligula bibendum posuere vitae in risus. Pharetra vehicula volutpat sit amet, ornare vitae purus. Quisque sed velit aliquam diam pulvinar placerat. Sed vitae magna lectus. Mauris quam libero, pellentesque quis tristique eu, accumsan eu massa. Sed sed nulla nec ligula bibendum posuere vitae in risus. Pharetra vehicula volutpat sit amet, ornare vitae purus.
Lorem ipsum ex vix illud nonummy, novum tation et his. At vix scriptaset patrioque scribentur, at pro fugit erts verterem molestiae Lorem ipsum ex vix illud nonummy, novum tation et Quisque sed velit aliquam diam pulvinar placerat. Sed vitae magna lectus. Mauris quam libero, pellentesque quis tristique eu, accumsan eu massa. Sed sed nulla nec ligula bibendum posuere vitae in risus. Pharetra vehicula volutpat sit amet, ornare vitae purus. Quisque sed velit aliquam diam pulvinar placerat. Sed vitae magna lectus. Mauris quam libero, pellentesque quis tristique eu, accumsan eu massa. Sed sed nulla nec ligula bibendum posuere vitae in risus. Pharetra vehicula volutpat sit amet, ornare vitae purus.
Daus ipsum ex vix illud nonummy, novum tation et his. At vix scriptaset patrioque scribentur, at pro fugit erts verterem molestiae Lorem ipsum ex vix illud nonummy, novum tation et Quisque sed velit aliquam diam pulvinar placerat. Sed vitae magna lectus. Mauris quam libero, pellentesque quis tristique eu, accumsan eu massa. Sed sed nulla nec ligula bibendum posuere vitae in risus. Pharetra vehicula volutpat sit amet, ornare vitae purus. Quisque sed velit aliquam diam pulvinar placerat. Sed vitae magna lectus. Mauris quam libero, pellentesque quis tristique eu, accumsan eu massa. Sed sed nulla nec ligula bibendum posuere vitae in risus. Pharetra vehicula volutpat sit amet, ornare vitae purus.
Daus ipsum ex vix illud nonummy, novum tation et his. At vix scriptaset patrioque scribentur, at pro fugit erts verterem molestiae Lorem ipsum ex vix illud nonummy, novum tation et Quisque sed velit aliquam diam pulvinar placerat. Sed vitae magna lectus. Mauris quam libero, pellentesque quis tristique eu, accumsan eu massa. Sed sed nulla nec ligula bibendum posuere vitae in risus. Pharetra vehicula volutpat sit amet, ornare vitae purus. Quisque sed velit aliquam diam pulvinar placerat. Sed vitae magna lectus. Mauris quam libero, pellentesque quis tristique eu, accumsan eu massa. Sed sed nulla nec ligula bibendum posuere vitae in risus. Pharetra vehicula volutpat sit amet, ornare vitae purus.
Daus ipsum ex vix illud nonummy, novum tation et his. At vix scriptaset patrioque scribentur, at pro fugit erts verterem molestiae Lorem ipsum ex vix illud nonummy, novum tation et Quisque sed velit aliquam diam pulvinar placerat. Sed vitae magna lectus. Mauris quam libero, pellentesque quis tristique eu, accumsan eu massa. Sed sed nulla nec ligula bibendum posuere vitae in risus. Pharetra vehicula volutpat sit amet, ornare vitae purus. Quisque sed velit aliquam diam pulvinar placerat. Sed vitae magna lectus. Mauris quam libero, pellentesque quis tristique eu, accumsan eu massa. Sed sed nulla nec ligula bibendum posuere vitae in risus. Pharetra vehicula volutpat sit amet, ornare vitae purus.
Daus ipsum ex vix illud nonummy, novum tation et his. At vix scriptaset patrioque scribentur, at pro fugit erts verterem molestiae Lorem ipsum ex vix illud nonummy, novum tation et Quisque sed velit aliquam diam pulvinar placerat. Sed vitae magna lectus. Mauris quam libero, pellentesque quis tristique eu, accumsan eu massa. Sed sed nulla nec ligula bibendum posuere vitae in risus. Pharetra vehicula volutpat sit amet, ornare vitae purus. Quisque sed velit aliquam diam pulvinar placerat. Sed vitae magna lectus. Mauris quam libero, pellentesque quis tristique eu, accumsan eu massa. Sed sed nulla nec ligula bibendum posuere vitae in risus. Pharetra vehicula volutpat sit amet, ornare vitae purus.
Daus ipsum ex vix illud nonummy, novum tation et his. At vix scriptaset patrioque scribentur, at pro fugit erts verterem molestiae Lorem ipsum ex vix illud nonummy, novum tation et Quisque sed velit aliquam diam pulvinar placerat. Sed vitae magna lectus. Mauris quam libero, pellentesque quis tristique eu, accumsan eu massa. Sed sed nulla nec ligula bibendum posuere vitae in risus. Pharetra vehicula volutpat sit amet, ornare vitae purus. Quisque sed velit aliquam diam pulvinar placerat. Sed vitae magna lectus. Mauris quam libero, pellentesque quis tristique eu, accumsan eu massa. Sed sed nulla nec ligula bibendum posuere vitae in risus. Pharetra vehicula volutpat sit amet, ornare vitae purus.
Saus ipsum ex vix illud nonummy, novum tation et his. At vix scriptaset patrioque scribentur, at pro fugit erts verterem molestiae Lorem ipsum ex vix illud nonummy, novum tation et Quisque sed velit aliquam diam pulvinar placerat. Sed vitae magna lectus. Mauris quam libero, pellentesque quis tristique eu, accumsan eu massa. Sed sed nulla nec ligula bibendum posuere vitae in risus. Pharetra vehicula volutpat sit amet, ornare vitae purus. Quisque sed velit aliquam diam pulvinar placerat. Sed vitae magna lectus. Mauris quam libero, pellentesque quis tristique eu, accumsan eu massa. Sed sed nulla nec ligula bibendum posuere vitae in risus. Pharetra vehicula volutpat sit amet, ornare vitae purus.
HIGHLIGHTS
Quisque sed velit aliquam diam pulvinar placerat. Sed vitae magna lectus. Mauris quam libero, pellentesque quis tristique eu, accumsan eu massa. Vehicula volutpat sit amet, ornare vitae purus. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi. totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi.
DIVIDER
LIST STYLES
- List style with uk-icon-check
- List style with uk-icon-check
- List style with uk-icon-check
- List style with uk-icon-check
- List style with uk-icon-exclamation
- List style with uk-icon-exclamation
- List style with uk-icon-exclamation
- List style with uk-icon-exclamation
- List style with uk-icon-comment-o
- List style with uk-icon-comment-o
- List style with uk-icon-comment-o
- List style with uk-icon-comment-o
- List style with uk-icon-warning
- List style with uk-icon-warning
- List style with uk-icon-warning
- List style with uk-icon-warning
- List style with uk-icon-bell
- List style with uk-icon-bell
- List style with uk-icon-bell
- List style with uk-icon-bell
- List style with uk-icon-tag
- List style with uk-icon-tag
- List style with uk-icon-tag
- List style with uk-icon-tag
Over 660 Retina Ready Icons available you can use in List Styles