function Posted October 23, 2017 Share Posted October 23, 2017 Hi guys. I am new here and new in canvas gaming development. I want to ask how to change the whole "structure" of a drawn layout according to media queries. E.g. Say we have drawn 3 rectangles of 100px each and all are next to each other. How could we tell the first one to occupy 300px (thus a whole row) and the other two to go below it and occupy 50% percent of the canvas width ( something like css media queries...)??? Thanks in advance. Quote Link to comment Share on other sites More sharing options...
BobF Posted October 24, 2017 Share Posted October 24, 2017 If you're targeting modern browsers then check out CSS's flexbox. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.