Problems on smartphone font-sizes

General questions regarding the use of languages in Joomla! 4.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
ezio2000
Joomla! Intern
Joomla! Intern
Posts: 57
Joined: Wed Dec 26, 2007 10:47 am

Problems on smartphone font-sizes

Post by ezio2000 » Sun Jan 21, 2024 4:47 pm

Web site with two languages:
-english (default)
-italian

I want to increase the font-sizes in smartphones, both portrait or landscape orientations:

Code: Select all

@media only screen and (pointer: coarse) {
	.benvenuto {
		font-size: 16px;
	}
} 
"benvenuto" is a custom class with default font-size 12 px, good for desktop monitors.

On smartphone code works perfectly in the english language, while in the italian lang in both orientations I get font-size 12 px. :eek:

Note: also with the test-code:

Code: Select all

@media only screen and (max-width: 720px) {
	.benvenuto {
		font-size: 16px;
	}
}
with smartphone in portrait orientation setting the italian lagnuage font-size remains 12px. :-\

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 31038
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Problems on smartphone font-sizes

Post by Per Yngve Berg » Sun Jan 21, 2024 4:54 pm

Not much we can do without a Link.

Use "Inspect Element" in your browser to see what is going on.

ezio2000
Joomla! Intern
Joomla! Intern
Posts: 57
Joined: Wed Dec 26, 2007 10:47 am

Re: Problems on smartphone font-sizes

Post by ezio2000 » Sun Jan 21, 2024 5:47 pm

Per Yngve Berg wrote:
Sun Jan 21, 2024 4:54 pm
Not much we can do without a Link.
True. :'(

But I can't post the link since the site contains some utilities for poker online and one administrator sent to me a private message warning that links to "adult content" are prohibited.

Per Yngve Berg wrote:
Sun Jan 21, 2024 4:54 pm
Use "Inspect Element" in your browser to see what is going on.
I really don't know what inspect: the class "container-search" to select languages is the original one of Cassiopeia and the custom class "benvenuto" is identical for both languages.

*** EDIT ***

Suddenly everything started working again on both sites.
I kindly ask the moderator to delete the post.

User avatar
AMurray
Joomla! Exemplar
Joomla! Exemplar
Posts: 9842
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: Problems on smartphone font-sizes

Post by AMurray » Sun Jan 21, 2024 10:00 pm

use "em" or "rem" instead of px for your font size.

The post will be here for others benefit and not removed.
Regards - A Murray
General Support Moderator


Post Reply

Return to “Language - Joomla! 4.x”