Hi all,
as in the post title, I would like to know which is the best way to set a layout that is right both for desktop and mobile?
For example: I need to use an "if" condition to check if the users are using a desktop or mobile browser, and then setting a different layout? Or there is some some specifics of bootstrap to do it?
Now, I'm using blazorise to set my layout, and I set my grid using the <row> and <column> specifics, with the right size. But, If in the mobile layout I would split some column, in order to add a new row, how do I do it?
For example: I need to use an "if" condition to check if the users are using a desktop or mobile browser, and then setting a different layout? Or there is some some specifics of bootstrap to do it?
No. In responsive web applications the screen width drives the layout which happens in the browser using media queries. You'll need to read the responsive framework documentation you are using to learn the framework fundamentals and design the markup.
Member
38 Points
217 Posts
Best way to set layout for desktop and mobile vision
Jan 27, 2021 03:32 PM|igorbaldacci|LINK
Hi all,
as in the post title, I would like to know which is the best way to set a layout that is right both for desktop and mobile?
For example: I need to use an "if" condition to check if the users are using a desktop or mobile browser, and then setting a different layout? Or there is some some specifics of bootstrap to do it?
Now, I'm using blazorise to set my layout, and I set my grid using the <row> and <column> specifics, with the right size. But, If in the mobile layout I would split some column, in order to add a new row, how do I do it?
Thanks for every kind of help.
All-Star
53001 Points
23587 Posts
Re: Best way to set layout for desktop and mobile vision
Jan 27, 2021 04:23 PM|mgebhard|LINK
No. In responsive web applications the screen width drives the layout which happens in the browser using media queries. You'll need to read the responsive framework documentation you are using to learn the framework fundamentals and design the markup.
Member
38 Points
217 Posts
Re: Best way to set layout for desktop and mobile vision
Jan 27, 2021 08:55 PM|igorbaldacci|LINK
Thank you.
Igor