Henrik
11 years agoAdvisor
Different HTML structure for the same page, from mobile or desktop browser
Hi,
We are using customized page in our community that are not related to a community node. For instance, I created a "Presse" custom page. "/t5/custom/page/page-id/Presse" will lead to that page.
I have found out that, for those specific pages, my CSS doesn't apply the same way if I use a phone or another device (iPad, desktop browser). The reason is that the HTML structure is different if I get to that page with a phone. The mobile mode is disabled (we want to try responsive design).
With an iPad, Chrome, Safari, Firefox, IE, etc. I get this structure:
<body class="Presse lia-body" id="lia-body"> <div class="lia-page"> <center> <div class="MinimumWidthContainer"> <div class="min-width-wrapper"> <div class="min-width"> <div class="lia-content">Custom Content</div> </div> </div> </div> </center> </div> </body>
With a phone (iPhone or Android), I get this one:
<body class="Presse lia-body" id="lia-body"> <div class="lia-page"> <div class="lia-content">Custom content</div> </div> </body>
Before I try to modify my CSS, would you know if it is possible to correct that behaviour?
Thanks!
Henrik