MyBB Community Forums

Full Version: Logo autosize
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi guys


Am looking for logo autosize code which means pc and mob automatic fitt logo nowa set my logo pc whens browsing with mob logo is wide
You can include Bootstrap, and then set the logo image as responsive, same with the rest of the site where tables and images will be to big for a mobile phone, then you can use col and so on...All in Bootstrap
how is that bootstrap
Good thread.

I'm subscribing to it, I'd like to know how to do this too.

Here's what I found, but I don't know if it's ready for general use.

https://www.openhub.net/p/mybb-bootstrap
You do this with CSS - don't need bootstrap just for this. When you want images to resize for mobile, be sure to set height and width settings in percentages not fixed dimensions.

(2016-08-04, 03:20 PM)nuraman00 Wrote: [ -> ]Good thread.

I'm subscribing to it, I'd like to know how to do this too.

Here's what I found, but I don't know if it's ready for general use.

https://www.openhub.net/p/mybb-bootstrap

That's not an active project.
how can i use css
im not professional but you can try using '%' instead of pixels.
Hi


Am also not coder so please tell me what is %
(2016-08-05, 07:57 PM)Kerala Wrote: [ -> ]Hi


Am also not coder so please tell me what is %

Go to your admin console-->Themes-->Default--> Edit global.css

Here, I have this section:

#logo {
	/*background: #fff;*/
	padding: 10px 0;
	border-bottom: 1px solid #263c30;
        background-size: 100% 100%;
        background: url(images/lunarYearShirt160px.jpg) center fixed;
        background-repeat: repeat;


}



(2016-08-05, 04:50 PM)tphe1234 Wrote: [ -> ]im not professional but you can try using '%' instead of pixels.

I've tried changing the %'s in "background-size" several times over the past 5 - 7 weeks, but it never seems to make a difference.

Only by changing the size of the actual image, do I see a different result.