Strange behavior of a table

Need some custom code changes to the phpBB core simple enough that you feel doesn't require an extension? Then post your request here so that community members can provide some assistance.

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Post Reply
EmilianoL
Registered User
Posts: 33
Joined: Sat Aug 25, 2018 12:40 pm
Contact:

Strange behavior of a table

Post by EmilianoL » Tue Apr 09, 2019 6:23 pm

I ask you a little question that I can't manage. In my forum (https://www.thrillingforum.com/phpbb/vi ... .php?t=413) I using a BBcode table to make a table with images, in this way:

1.jpg

Everything works well, but when you try to see the forum via a mobile device, using the responsive functionality, the table is resized and some elements of the borders disappear and the words CREDITED and the two points ":" appear instead of the cage to the left.

2.jpg

Can anyone tell me why this happens? Thanks in advance.

User avatar
Toxyy
Registered User
Posts: 697
Joined: Mon Oct 24, 2016 3:22 pm
Location: Namek
Contact:

Re: Strange behavior of a table

Post by Toxyy » Wed Apr 10, 2019 7:20 am

: keeps appearing because you have this css:

Code: Select all

@media (max-width: 700px) {
	...
	table.responsive td > dfn:after {
		content: ':';
		padding-right: 5px;
	}
	...
}
(theres stuff before and after the middle bit, it's just inside that max-width: 700px)

removing the content line fixes it.

For the word CREDITED it seems that it's hard coded into your template in the td's dnf tag, as far as I can tell at least.

For the border not being aligned, you have a couple of solutions. Assuming your added table uses the custom class .tables1 you could add this block to the same media query:

Code: Select all

	.tables1 {
		margin-left: 0px;
	}
and it also looks like you've hardcoded its width to 98%, change it to 97%
I am a web developer/administrator, specializing in forums. If you have work you need done or are too lazy to do, pm me!

My extensions:
[3.2][BETA] Anonymous Posts || [3.2][BETA] Sticky Ad || [3.2][RC] Show User Activity ||
[3.2][DEV] User Delete Topics

EmilianoL
Registered User
Posts: 33
Joined: Sat Aug 25, 2018 12:40 pm
Contact:

Re: Strange behavior of a table

Post by EmilianoL » Wed Apr 10, 2019 9:38 am

Thank you very much, I will try to make good use of these tips.

Post Reply

Return to “phpBB Custom Coding”