Answers for "how to make the height of a container auto css"

CSS
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
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

Code answers related to "how to make the height of a container auto css"

Browse Popular Code Answers by Language