Cheatography
https://cheatography.com
Syntax
> |
|
+ |
|
^ |
Climb up - div+div>p>span+em^bq
|
( ) |
Grouping - div>(header>ul>li*2>a)+footer>p
|
* |
Multiplication - ul>li*5
|
$ |
Numbering - ul>li.item$*5
|
. |
Class - h1.title
or p.class1.class2.class3
|
# |
ID - div.#header
or form#search.wide
|
[ ] |
Custom attributes - td[rowspan=2 colspan=3 title]
|
{ } |
Text - p>{Click }+a{here}+{ to continue}
|
HTML
! |
Create HTML5 template |
a |
|
a:link |
<a href="http://"></a>
|
a:mail |
<a href="mailto:"></a>
|
link |
<link rel="stylesheet" href="" />
|
meta |
|
meta:utf |
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
|
style |
|
script |
|
script:src |
<script src=""></script>
|
img |
|
form |
<form action=""></form>
|
form:get |
<form action="" method="get"></form>
|
form:post |
<form action="" method="post"></form>
|
label |
|
inp |
<input type="text" name="" id="" />
|
input:email |
<input type="email" name="" id="" />
|
input:p |
<input type="password" name="" id="" />
|
input:c |
<input type="checkbox" name="" id="" />
|
input:r |
<input type="radio" name="" id="" />
|
input:f |
<input type="file" name="" id="" />
|
select |
<select name="" id=""></select>
|
option |
<option value=""></option>
|
textarea |
<textarea name="" id="" cols="30" rows="10"></textarea>
|
btn:s |
<button type="submit"></button>
|
btn |
|
sect |
|
art |
|
hdr |
|
ftr |
|
mn |
|
ol+ |
|
ul+ |
|
dl+ |
<ol> <dt></dt> <dd></dd> </ol>
|
table+ |
<table> <tr> <td></td> </tr> </table>
|
tr+ |
|
|
|
CSS
pos:(a|r|f) |
position:absolute|relative|fixed;
|
t |
|
r |
|
b |
|
l |
|
z |
|
fl:(n|r|l) |
float:none|right|left;
|
cl:(n|b|l|r) |
clear: none|both|left|right;
|
d:(n|b|f|i|ib) |
display: none|block|flex|inline|inline-block;
|
v:(v|h) |
visibility: visible|hidden;
|
ov:(v|h|s) |
overflow: visible|hidden|scroll;
|
ovx:() |
overflow-x: visible|hidden|scroll;
|
ovy:() |
overflow-y: visible|hidden|scroll;
|
m |
|
m(r|t|b|l) |
margin-right|top|bottom|left;
|
p |
|
p(t|r|b|l) |
padding-top|right|bottom|left;
|
bxz:bb |
box-sizing: border-box;
|
w |
|
h |
|
maw |
|
mah |
|
miw |
|
mih |
|
fw |
|
fz |
|
ff |
|
ta:(l|c|r|j) |
text-align: left|center|right|justify;
|
td:n |
|
lh |
|
bg:n |
|
bg+ |
background: #fff url() 0 0 no-repeat;
|
c:(r|ra) |
|
op |
|
cnt |
|
ol:n |
|
bd+ |
|
bd:n |
|
bd(t|r|l|b)+ |
border-top|right|left|bottom: 1px solid #000;
|
bdrs |
|
lis:n |
|
! |
|
@f |
|
@kf |
|
@m |
|
anim- |
|
ai:(b|c|fe|fs|s|sa|sb) |
align-items: baseline|center|flex-end|flex-start|stretch|space-around|space-between;
|
fxd:(c|r) |
flex-direction: column|row;
|
jc:(c|fe|fs|sa|sb) |
justify-content: baseline|flex-end|flex-start|space-around|space-between;
|
trf:(r|sc|skx|sky|t) |
transform: rotate|scale|skewX|skewY|translate;
|
trs |
|
trfo |
|
|
Created By
Metadata
Favourited By
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets
More Cheat Sheets by deftcode