Your syntax is wrong, you have to pass multiple items as an array. But in this case if you want to assign individual options per stylesheet, you have to call them all separately:
Thanks texnixe,
This option doesn’t seem to work…
actually, is this the correct way to do it?
Is there a better way to charge different stylesheets depending on the screen width?
Thanks.
<?= css('assets/css/style.css', ['media' => 'screen and (min-width:500px)']) ?>
<?= css('assets/css/mobile.css', ['media' => 'screen and (max-width:500px)']) ?>
my second question would be, is this the correct way to do it?
Is there a better way to load different stylesheets depending on the width of the window?