Open in app
Kevin Kim
222 Followers
About

Sign in

222 Followers
About
Open in app

CSS Absolute center something

Kevin Kim

Kevin Kim

Dec 24, 2019·1 min read

Because I always mix up the positive and negative and transform with translate…

The proper syntax

@mixin absCenter {  position: absolute;  top: 50%;  left: 50%;  transform: translate(-50%, -50%)}

Kevin Kim

Front End Engineer https://kevinyckim.netlify.com/

  • CSS
  • Sass

More from Kevin Kim

Front End Engineer https://kevinyckim.netlify.com/

More From Medium

Setting up Webflow on Ruby on Rails

Kevin Kim

Cross-site Scripting (XSS) simplified: What is it & how to prevent it?

DLT Labs

FizzBuzzBazz: How to answer and how NOT to answer

Kevin Kim in ITNEXT

Get Sass and Font Awesome up and running on your Create React App in 5 minutes

Kevin Kim

Use the Dart Sass JavaScript Implementation to Compile SASS with Node.js

James

How to Make Your Django Forms Look Crispy 🥓

Ordinary Coders

NYTimes Peru N-Word, Part Three: What Happened in the 2019 Investigation?

Donald G. McNeil Jr.

NYTimes Peru N-Word, Part Two: What Happened January 28?

Donald G. McNeil Jr.

About

Help

Legal

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store