According to your code there are some <br>
in between each iframe
, you may check your for loop
render logic to see where they come from. The grid displays properly after remove all the <br>
By the way, the display: grid
is now being applied to a <p>
element, it is suggested to change it to <div>
as well 🙂
CLICK HERE to find out more related problems solutions.