When will phpBB 4.0.0 final version be released?

Discussion of non-phpBB related topics with other phpBB.com users.
Forum rules
General Discussion is a bonus forum for discussion of non-phpBB related topics with other phpBB.com users. All site rules apply.
User avatar
Gumboots
Registered User
Posts: 707
Joined: Fri Oct 11, 2019 1:59 am

Re: When will phpBB 4.0.0 final version be released?

Post by Gumboots »

Yes I get that. Not a problem, but good advice for the unwary.

Just taking a quick look, and I noticed something which has been annoying me lately anyway. 3.3 Prosilver has this too:

Code: Select all

html {
	font-size: 100%;

	/* Always show a scrollbar for short pages - stops the jump when the scrollbar appears. non-IE browsers */
	height: 101%;
}
The problem is that this is left over from the days when IE did not support min-height. The result is that the html tag will always be restricted to 101% of the viewport height and often the body tag will be far more than that. This can complicate adding backgrounds to the style, because the browser treats the html tag as a fixed height element with visible overflow.

For example: you want a nice blue background with a darker gradient near the top of the page. A bit old school, but still works well with some styles. You declare that on the body tag, but when the body tag is not very tall (ie: login page) your style runs out of background before the viewport runs out.

So ok, you put the background on the HTML tag instead. Now it runs out of height whenever the body tag is greater in height than 101% of the viewport. Yay! :P

Yes, you can put the gradient on the body tag, and a matching flat colour on the html tag, to cover all cases. It's a nuisance though. Simple solution: use min-height instead, and put the background on the html tag.

Code: Select all

html {
	font-size: 100%;

	/* Always show a scrollbar for short pages - and do it in a way that won't annoy people who want to customise the presentation. */
	/* All browsers these days are non-IE browsers,and even IE8 supported min-height.  :P */
	min-height: 101%;
}
So there you go. My first suggested bug fix for Chameleon. Also works in any other style. You know you want it.
User avatar
[Dimetrodon]
Registered User
Posts: 441
Joined: Tue Aug 30, 2022 3:29 am
Location: Paleozoic Era

Re: When will phpBB 4.0.0 final version be released?

Post by [Dimetrodon] »

Gumboots wrote: Wed Jul 05, 2023 10:33 pm Not a problem, but good advice for the unwary.
Yeah, that was what the warning was for. :)

I know you're skilled and won't do anything brash, but the same cannot be said for an inexperienced board owner on this site.

Return to “General Discussion”