Answers for "css how to make responsive"

0

how to make page responsive using css

/*There is no definitive answer for making your page responsive. 
Though I personally use this method a lot:*/
@media only screen and (max-width: 700px) {
  body {
    background-color: red;

    }
}
Posted by: Guest on October-07-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 how to make responsive"

Browse Popular Code Answers by Language