0
<?php 
    if(isset($rowa['title'])) {
        echo 'style="@media (min-width: 768px) {grid-area: 4 / 2 / span 1 / span 1}  "';
    } 
?>

when I remove @media (min-width) the code is executed successfully

Jay Blanchard
  • 34,243
  • 16
  • 77
  • 119
  • Yes this does. How can I solve the problem the other way?. – Bəxtiyar Əli Ağayar Sep 09 '20 at 11:28
  • That is also explained in that duplicate already - create a ` – CBroe Sep 09 '20 at 11:30
  • I'd define a class (in your CSS file, or in a style element in the HTML) which exists within a media query, and then just give your element that class. – ADyson Sep 09 '20 at 11:32

0 Answers0