Answers for "text middle of div css"

CSS
15

css align items vertical center

.parent {
  display: flex;
  justify-content: center;
  align-items: center;
}
Posted by: Guest on October-31-2020
1

center css elements

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

middle text css

text-align: center;
Posted by: Guest on July-28-2020
3

how to set text to middle in div

.center {
  margin: auto;
  width: 50%;
  border: 3px solid green;
  padding: 10px;
}
Posted by: Guest on July-14-2020

Browse Popular Code Answers by Language