Answers for "css align to center of page"

CSS
3

css center div in page

.center {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
Posted by: Guest on July-02-2021
2

center on page css

body {
  display: grid;
  place-items: center;
  height: 100vh;
  margin: 0;
}
Posted by: Guest on June-01-2021
21

how to center text in css

.class {
	text-align: center;
}
Posted by: Guest on February-15-2020

Code answers related to "css align to center of page"

Browse Popular Code Answers by Language