Skip to content

Instantly share code, notes, and snippets.

@veremey
Last active June 19, 2023 09:09
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
  • Save veremey/388caac9cfb1ed906472f12f367576f0 to your computer and use it in GitHub Desktop.
Save veremey/388caac9cfb1ed906472f12f367576f0 to your computer and use it in GitHub Desktop.
Настройки верстальщику
@veremey
Copy link
Author

veremey commented Jun 10, 2017

Если центрируем блок с текстом и текст методом:
`.parent {position: relative};

.child {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) translateZ(0) scale(1.0, 1.0);
-webkit-font-smoothing: subpixel-antialiased;
}`

Не забываем ставить ребенку

-webkit-font-smoothing: subpixel-antialiased; -webkit-transform: translateZ(0) scale(1.0, 1.0);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment