@webSemanticsUK .content {
container: content / inline-size;
--fsv: calc(100cqi / 2800px);
--fs: calc(var(--fsv) + 0.9);
}
div.flexibel p {
font-size: calc(var(--fs) * 1rem);
}
Do you know a solution?
Would be happy if you could help me.
@webSemanticsUK And with a container width of 630 pixel, the font size should be 1.125rem.
Just a linear function.
I have tried the following, but it does not work.
@webSemanticsUK I would like to make the font size flexible according to the width of the container and additionally in the unit rem.
The font size should be 1rem for a container width of 280 pixel.
For a container width of 980 pixel the font size should be 1.25rem.
@webSemanticsUK It is often recommended that you specify the font size (or even the width of containers) in rem units, so the size is relative to the default font size set in the browser.
Since a few weeks the big browsers support container query units.
@webSemanticsUK It would be better if the font size was calculated using a linear function in my opinion.
For example:
If the width of the container is 14rem then the font size should be 1rem. If the container is 60rem wide, then the font size should be 1.25rem.
@usbotschaft Jeder, der mindestens einen Vorfahren hatte, der Deutscher nach RuStAG Vom 22.7.1913 war, sollte unbedingt die entsprechende Staatsangehörigkeit seines Vorfahren bekommen. Bitte helft uns! Vielen Dank!
@usbotschaft Bitte befreit von allen unseren Politikern, die nicht zum Wohle des Volkes handeln auch von allen, die eine Welt-Regierung anstreben. Befreit alle Völker. Danke!
@usbotschaft Die Antifa muss verboten werden! Bitte stufen sie die Antifa als terroristische Organisation ein. Auch in Deutschland. Weltweit. Und ziehen Sie bitte alle Unterstützer der Antifa und natürlich auch die Mitglieder zur Rechenschaft. Vielen Dank!
@usbotschaft Der Bundespräsident und die Mitglieder der Bundesregierung verstoßen gegen ihren Amtseid.
Bitte befreien Sie uns von diesen Verräter.
Bitte entfernen Sie diese Gehilfen der Globalisten aus ihren Ämtern und bringen Sie diese vor Gericht.
Sie müssen bestraft werden.
Vielen Dank!