Poseidon2 Posted July 28, 2020 Posted July 28, 2020 Hello guys. Do you know how to know that we are in smartphone mode ? Because in my bloc I only have the following attributs :Â $records, $title, $orientation='vertical' I don't have any clue of the application reading the site. Is theres any globals informations ? Â Thanks for you helps
opentype Posted July 28, 2020 Posted July 28, 2020 What are you trying to achieve exactly? It would help to know that to give a better answer. Those attributes being listed are processed on the server. But the server doesn’t know where the generated page will be displayed and it doesn’t deliver anything different to mobile devices vs. desktop screens. You can however mark content to be shown or hidden based on the viewport size. This is handled through CSS. https://invisioncommunity.com/4guides/themes-and-customizations/css-framework/responsiveness-r250/  Poseidon2 1
Poseidon2 Posted July 28, 2020 Author Posted July 28, 2020 in fact I have a bloc that is quite good in standard web browser be that is really not good view with a smartphone 😞
Poseidon2 Posted July 28, 2020 Author Posted July 28, 2020 3 hours ago, opentype said: https://invisioncommunity.com/4guides/themes-and-customizations/css-framework/responsiveness-r250/ I could do exactly what I wanted with this in <div> balise in my template. Thank's a lot!
bfarber Posted July 28, 2020 Posted July 28, 2020 Yes, in the case of adapting the display for mobile, you want to use responsive CSS.
Recommended Posts