Answers for "css inline vertical align middle"

CSS
7

css vertical align middle

/* Flex */
.center {
  	display: flex;
  	justify-content: center;
  	align-items: center;
}
/* Without Flex */
.parent {
  	position: relative;
}
.child {
  	position: absolute;
  	top: 50%;
  	transform: translateY(-50%);
}
Posted by: Guest on April-19-2021
15

css align items vertical center

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

Code answers related to "css inline vertical align middle"

Browse Popular Code Answers by Language