Answers for "how to make responsive using css"

1

how to make a div responsive in css

Use %.
% takes the x% space of the parent element.
example:
This div will have the same width as the body, which is usually the whole page.
<style>
	div{
  	width:100%;
  	}
</style>
<body>
	<div></div>
</body>
Posted by: Guest on June-26-2021
0

CSS RESPONSIVE

div {
  font-size: min(3vw, 36px);
}
Posted by: Guest on December-19-2021

Code answers related to "how to make responsive using css"

Browse Popular Code Answers by Language