Answers for "auto adjust height according to contetn div"

CSS
0

how to make div width auto adjust

.center {
  display: inline-block;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
Posted by: Guest on November-28-2020
1

css auto heigh div

/*It's super easy... you just need to set this css atribute*/
.mydiv{
	min-height: 100px;
	overflow: hidden;
}

/*Other way to do this:*/
.mydiv{
	height: auto;
}
Posted by: Guest on June-09-2021

Code answers related to "auto adjust height according to contetn div"

Browse Popular Code Answers by Language