DIV content not showing full width on mobile devices

I am optimizing a website for mobile devices. The content of one DIV is not displayed at 100% width of mobile phone browser. I tried some modifications in CSS, but it is still not working as expected. Do you have any suggestions how to reliably display the content on full width of screen ?
posted on 03.06.2019 at 18:49
0pnshow more
zeddzedd
Hi,

To show the content on 100% width of mobile browser screen, you can add Viewport meta tag between <head></head> tags:

<meta name="viewport" content="width=device-width, initial-scale=1.0" />

You can also modify it according to your needs, to display the website on the right scale and get the best possible effect. The width could be specified, what will affect how the website will be displayed, when it will be loaded in mobile phone browser. For example, the viewport width could be 600px:

<meta name="viewport" content="width=600" />


posted on 05.06.2019 at 16:05
0pnshow more
TimTim
share on facebookshare on twitter
2020 AnswerTabsTermsContact us
This site uses cookies to improve your experience, for analytics and ads. By continuing to browse this site you agree to our use of cookies.