I am really confusing about media queries although i am very new to this field.
I developed a website,its width:1024px. Its working fine in all browsers.
Its not a mobile website,So is it necessary to use media queries.
I google it ,I got answer like , according to screen size we can use media queries (especially for mobile websites )
But i dont want to work my website in mobile,
My question
Is it compulsory to use media queries when we developing a wesite?
No, there is no requirement of any kind that a web site should use media queries.
Moreover, just using media queries is useless. They are used to set different presentation styles for different viewports or devices. If you have no intention of ever considering the possibility that someone might view your page in a window narrower than 1024 pixels, I don’t see why you would even consider using media queries (at least for width issues, which are by far the most relevant in media queries).
The point is that media queries are essentially conditions in “if … then …” constructs. If you have just one alternative for the “then” part, the condition is of no use.