Answers for "position an icon in relation a parent element"

CSS
0

position an icon in relation a parent element

.container {
  position: relative;
  min-height: 100vh;
}
.vertical-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
}
Posted by: Guest on June-16-2020

Code answers related to "position an icon in relation a parent element"

Browse Popular Code Answers by Language