Print Page | Close Window

100% width on mobile & Ads only showing on desktop

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=31616
Printed Date: 28 March 2026 at 9:40pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: 100% width on mobile & Ads only showing on desktop
Posted By: slappyJ
Subject: 100% width on mobile & Ads only showing on desktop
Date Posted: 30 May 2019 at 10:08pm
Two questions:

1. The mobile version is not stretching to fit 100% width of the screen...were do I make this change?

2. Why does Ad Code only show up on the desktop version?

Thanks



Replies:
Posted By: WebWiz-Bruce
Date Posted: 30 May 2019 at 10:57pm
In the css-styles folder there will be a 'mobile_default_style.css' for your selected skin which can be used to change the appearance and layout of the mobile view.

As the ads for mobile and desktop can be different there is a section in the forum admin area for mobile ads. 


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: slappyJ
Date Posted: 31 May 2019 at 9:40pm
I changed the width of the body css class from 630px to 100% but there is no change.

/* Page body */
body{
    background-color: #FFFFFF;
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    width: 100%;
}

If the width on mobile doesn't fit the entire screen I noticed that banner ads get cut off on the right edge.


Posted By: WebWiz-Bruce
Date Posted: 03 June 2019 at 8:36am
If you have added your own banner image, custom header, or ads to your forum and these are not mobile optimised they can cause the content of your forum to be forced to one side when viewed on a mobile device

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: slappyJ
Date Posted: 03 June 2019 at 8:18pm
Thanks Bruce...but you still haven't answered one of my main questions...how do you make mobile fit 100% of the screen?


Posted By: WebWiz-Bruce
Date Posted: 05 June 2019 at 7:07am
In it's default setup it does fit 100% of the screen.

In my last reply I was trying to list things you may have changed that caused the mobile version on your forum to not fit 100% of the mobile device screen.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net