Media queries as mentioned before gives you the power to change the style you want.
To change the width you can do:
@media(width:360px) {
div {
Color:red;
}
To make it work I noted that I need to nest inside the brackets or else nothing happens
min and max width is more common to implement. Meanwhile view port is polygon or polygonal polygon and computer graphics that is currently being viewed in your browser.
To summarise it refers to the part of the document you’re viewing which is currently visible in its window or the screen.
So when you set min width of 800px and with the colour purple it changed changes colour.
Comments