14 lines
266 B
JSON
14 lines
266 B
JSON
{
|
|
"Center element": {
|
|
"prefix": "center",
|
|
"description": "Centers an element absoulte in its center",
|
|
"body": [
|
|
"/*Center element*/",
|
|
"margin: 0;",
|
|
"position: absolute;",
|
|
"top: 50%;",
|
|
"left: 50%;",
|
|
"transform: translate(-50%,-50%);"
|
|
]
|
|
}
|
|
} |