Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

min/max-width are revealed in reverse order at the browser

enter image description here

Like the picture above, min/max-width are shown in reverse order at the browser even I've written the min-width as a first, and max-width as a second in the editor.

But the bizarre thing is, it works perfectly fine. There's no problem about functional. The browser goes changing properties when the width are greater/lesser than specific numbers what I've set.

Will this be a problem in near future?

like image 978
l3lue Avatar asked Dec 07 '25 05:12

l3lue


1 Answers

It's the default order shown by the browser. No matter how you order the media query in your code 'max' property will always appear first.

like image 145
Adrian Danlos Avatar answered Dec 10 '25 14:12

Adrian Danlos



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!