Answers for "how to make a div responsive"

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

responsive html

@media (max-width: 530px){
    .CLASSHERE {
        padding: 10px 110px;
        margin-left: 365px;
        margin-bottom: 30px;
        font-size: medium;
        text-align: center;
    }
}
Posted by: Guest on December-23-2020

Code answers related to "how to make a div responsive"

Browse Popular Code Answers by Language