Which code you have to use to disappear image when using phpbb on your mobile version

For support and discussion related to templates, themes, and imagesets in phpBB 3.2.
Post Reply
Luchtzak
Registered User
Posts: 233
Joined: Sat Jul 20, 2002 7:13 pm
Contact:

Which code you have to use to disappear image when using phpbb on your mobile version

Post by Luchtzak » Mon Jun 04, 2018 7:57 am

When surfing phpbb via mobile, some items in menu etc... have been shortened or do not appear.

I have a row of advertising on my site in the main header, perfect for browser on laptop/pc, but I want to have them disappeared when surfing mobile.

Which code do I have to use ?

http://malinwaforum.be/

Dan Stylez
Registered User
Posts: 78
Joined: Tue Jan 16, 2018 6:17 am
Contact:

Re: Which code you have to use to disappear image when using phpbb on your mobile version

Post by Dan Stylez » Mon Jun 04, 2018 4:11 pm

This code works:

Code: Select all

@media (max-width: 700px) {
table {
	display: none;
}
}
But ideally, you could give the div that you have the table in a class, to avoid any conflicts with other parts of the forum.

Example your div is : <div align="center">
You could change it to: <div class="ad-bar" align="center">

Then the code you would use:

Code: Select all

@media (max-width: 700px) {
.ad-bar {
	display: none;
}
}

User avatar
eeji
Jr. Style Validator
Posts: 749
Joined: Fri Dec 12, 2008 9:08 pm
Location: Manchester, UK

Re: Which code you have to use to disappear image when using phpbb on your mobile version

Post by eeji » Mon Jun 04, 2018 5:55 pm

Change <table width="80%"> to <table width="80%" class="responsive-hide">

Luchtzak
Registered User
Posts: 233
Joined: Sat Jul 20, 2002 7:13 pm
Contact:

Re: Which code you have to use to disappear image when using phpbb on your mobile version

Post by Luchtzak » Mon Jun 04, 2018 6:55 pm

eeji wrote:
Mon Jun 04, 2018 5:55 pm
Change <table width="80%"> to <table width="80%" class="responsive-hide">
Dan Stylez wrote:
Mon Jun 04, 2018 4:11 pm
This code works:
Thanks both!

Post Reply

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

Who is online

Users browsing this forum: No registered users and 16 guests