Answers for "how can i make the div container height auto"

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 can i make the div container height auto"

Browse Popular Code Answers by Language