MyBB Community Forums

Full Version: MyBB GoMobile - image size
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello everyone

On my forum (running 1.6.*) I am running GoMobile.

I have entered my forum's logo - and it works great when you land on the page.

But if you click on any post, then click 'back' the logo is massive. It doesn't reset to a 100% size to fit the mobile device viewing my forum.

I've got the image sizing coding wrong somewhere.

Can you take a look and maybe offer a better suggestion?

This is the code I've written:

<a href="http://www.vwcamper.net">
<img src="/a_images/logos/vwcf_logo.png" border="0" style="border:none;max-width:100%;" alt="The VW Camper Forum" />
</a>

Oh, site is www.vwcamper.net
I experimented with using a logo in GoMobile too, but it is not practicable. I'm not sure max-width  works with percentages. Try width: 100%;

The problem is, there are no interim sizes created for the mobile theme. For example, in WordPress, when you are using a responsive theme and upload an image, various sizes are automatically created - to suit the screen width being used.

With using 100%, you will get a massive image in portrait mode or on a tablet. The only solution is to create a fixed size image 250px wide. This will work on phones, but is small for tablets.

Also, ensure that code you are adding is in the Header template for GoMobile. I gave up and simple changed that line to /images/mobile/home.gif