My forum is aligned left on mobile but center on desk top screens

For support and discussion related to templates, themes, and imagesets in phpBB 3.2.
Post Reply
User avatar
TheButcher2
Registered User
Posts: 1030
Joined: Tue May 13, 2014 11:38 pm
Contact:

My forum is aligned left on mobile but center on desk top screens

Post by TheButcher2 »

Hi guys

Quicky if I may, I am running prosilver on https://www.sponsorchat.com with a few css and template modifications by yours truly, and it looks fine on a desktop, but on an iphone or ipad it centers left, I have tried monkeying around with the css but can;t get it to center. Any help would be appreciated. I want it to center on all possible devices.

Peace


Dave
User avatar
DTMWC
Registered User
Posts: 379
Joined: Tue Jan 16, 2018 6:17 am

Re: My forum is aligned left on mobile but center on desk top screens

Post by DTMWC »

This is caused by changing the wraps max-width from pixels to percentage,

One method to try is open common.css and remove:

Code: Select all

@media only screen and (max-width: 1220px), only screen and (max-device-width: 1220px) {
	.wrap {
		margin: 0 12px;
	}
}
and then open responsive.css and find:

Code: Select all

	.wrap {
		border: none;
		border-radius: 0;
		margin: 0;
		min-width: 290px;
		padding: 0 5px;
	}
On the next line under padding add: max-width: 100%;
Boom.
User avatar
TheButcher2
Registered User
Posts: 1030
Joined: Tue May 13, 2014 11:38 pm
Contact:

Re: My forum is aligned left on mobile but center on desk top screens

Post by TheButcher2 »

Thanks Dan will try tomorrow.

Peace
User avatar
TheButcher2
Registered User
Posts: 1030
Joined: Tue May 13, 2014 11:38 pm
Contact:

Re: My forum is aligned left on mobile but center on desk top screens

Post by TheButcher2 »

Hi Dan

Just to update and say thanks, I just did what you suggested and it is centered on my laptop and ipad.

Have a great Sunday


Peace
Post Reply

Return to “[3.2.x] Styles Support & Discussion”