Answers for "center text horizontal and vertical css"

CSS
1

center css elements

body{
  display: grid;
  place-items: center;
}
Posted by: Guest on November-11-2020
1

how to make the text vertically centered in css

/*attention, i used this code because i had to center a div with text in another div without text*/
div{
  position: relative;
  top: 25%;
  bottom: 25%;
}
Posted by: Guest on January-20-2021

Code answers related to "center text horizontal and vertical css"

Browse Popular Code Answers by Language