Answers for "css container responsive width"

0

css width responsive

@media only screen and (max-width: 980px) {
  body {
    background-color: grey;
  }
}
Posted by: Guest on November-30-2021
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

Code answers related to "css container responsive width"

Browse Popular Code Answers by Language