News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Viewport not working

Started by CrimeS, June 17, 2015, 05:57:28 AM

Previous topic - Next topic

CrimeS

Hello, I'm doing some experimental code with SMF, but I have a problem with viewport and possibly someone could have solution to this one.I'm trying to get a initial responsiveness to a theme. On desktop, everything is resized properly when changing the browser window, no scrolling needed (even at very tight widths it's still whatever % set).

The problem comes in when I add viewport, as the forum is still zoomed out, if I add initial scale to 1 then it looks as I want it, but you can only see half of the forum, which is weird regarding the desktop situation, that it should be 90% width of the browser window.

smsabbir480

I think this might help you
<meta name="viewport" content="width=device-width, initial-scale=1.0">

CrimeS

I already fixed the issue.

By the way, this won't work ;)

Advertisement: