Changing the page size of the site by media query in CSS

Advertisements

If I want to change the shape of a website page with a width and height of 600px and change its shape. Which one should I use?
Max width/height
Or
Min width/height.
🤔

I hope you can help me in this matter that I asked about media query in css

>Solution :

A maximum width can be specified for elements using the max-width property.

When we don’t want the width of an element to exceed a certain value, we can use this feature to determine that value for the element.

By using the min-width and max-width properties, you can set a range for the width of an element.

Leave a ReplyCancel reply