html - Confusion with using translate when centering an element in CSS -


    .center{         position: absolute;         top: 50%;         left: 50%;         transform: translate(-50%, -50%);     } 

i using center element class name center, not quite sure how transform , translate work in css , how make element centered.


Comments

Popular posts from this blog

php - Embed BBCode within itself not working -

three.js - how to load gltf in three JS -

sql server - T-SQL: Access DB objects in same schema without qualifying? -