Show Menu
Cheatography

Web Standards Cheat Sheet (DRAFT) by

CSS tags

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Instru­ctions

Find the element you want to style and add class=­"­[cl­ass­-na­me]­" to the HTML tag.

Examples

<h3 class="space-bot-0">Header with no bottom spacing</h3>

<p class=“rteindent1”> Paragraph text here will be indented. </p>

<table class="table">
<tr>
  <td>your table</td>
</tr>
</table>

NOTE

You CAN use more than one class on a single element, and in the case of buttons, you need to use both the "­btn­" and then the preferred style (btn-p­rimary or btn-gold, etc.).

Example

<a class="btn btn-primary btn-block">CTA link</a>

Paragraph styles

TEXT INDENTION
TEXT ALIGN
rteindent1
rteleft
rteindent2
rteright
rteindent3
rtecenter
rteindent4
rtejustify
 

Spacing

space-­top-0
space-­bot-0
space-­top-sm
space-­bot-sm
space-­top-md
space-­bot-md
space-­top-lg
space-­bot-lg
space-­top-xl
space-­bot-xl

Table

table
default style
table-­con­densed
same as default
table-­bor­dered
adds full borders to default style
table-­striped
adds altern­ating row striping
table-­hover
adds a row highlight effect on hover
table-­res­ponsive
makes table responsive on smaller devices
no-bor­der-top
removes gray border at the top

Buttons & Call to Actions

btn
default (always use)
btn-pr­imary
maroon
btn-se­condary
gray
btn-gold
gold
btn-blue
blue (only use with degrees)
btn-lg
makes btn size and text bigger
btn-block
makes btn span the width of the parent element
btn-group
btn-de­fault