added css center snippet in vscode

This commit is contained in:
Niklas 2020-07-17 18:29:20 +02:00
parent c78b4c64e4
commit 3a4a8e97c9
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,14 @@
{
"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%);"
]
}
}

View File

@ -0,0 +1,14 @@
{
"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%);"
]
}
}