MyBB Community Forums

Full Version: Top banner not resizing if i resize my browser
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi people i have a problem. The fact is when i resize my browser, the whole forum resizes in accordance to the browser except the top banner & a image.

I want to know if there is any code needed for them to automatically resize.


Pls help.
It is because your image is 900 pixels wide. If you want to fluctuate with the page size then the image tag needs a percentage width attribute.
pls can u give the code? I just made the banner 900 px x 140 px

Then changed the url after importing the new theme..

this is the code in my global.css .logo

.logo {
	margin: 0;
        text-align: center;

}

What should be added?
You have to make a change in the header template.

Go to template & styles>templates>[template name you are using]>header templates>header

Find
<img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" />

Replace
<img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" width="90%" />
Thanks alot skywalker2208, it worked