This CSS standardises your Responsive WordPress Fonts!

  Рет қаралды 2,176

Web Squadron

Web Squadron

8 күн бұрын

Get the CSS code from the FREE Fonts Pack: learn.websquadron.co.uk/#free...
And you can use the Free Tool to get your own Responsive Font Clamp() formulas: learn.websquadron.co.uk/tools
PS - Updated CSS Code for the Root HTML
/* Set the root font size to 100% to be better for Web Accessibility*/
html {font-size: 100%;}
/* If you prefer to set it to 10px for easier rem calculations */
html {font-size: 62.5%;} /* 1rem = 10px */
👉 Grab our $1 Business Packs: learn.websquadron.co.uk/#packs
👉 WordPress Hosting: be.elementor.com/visit/?bta=2...
👉 The Pro Page Builder: be.elementor.com/visit/?bta=2...
Need 1-2-1 Support: learn.websquadron.co.uk/#support
Join our Facebook Group: / websquadron
Get Code Snippets Pro: r.freemius.com/10565/3304295/

Пікірлер: 29
@Dudeske
@Dudeske 3 күн бұрын
Best trick ever to don't have to setting fonts size each time ! I'll try this for sure. Thank you !
@laithibrahim397
@laithibrahim397 2 күн бұрын
As always, very useful and very detailed. Thanks Imran!
@Gearyco
@Gearyco 6 күн бұрын
Just a quick note on accessibility: If you use px values in the root font size, it'll make all your typography inaccessible. The root needs to be a "%" value in order to respect browser preferences. Instead of 16px and 10px for the root, you can use 100% and 62.5%. Cheers.
@KillahManjaro
@KillahManjaro 6 күн бұрын
I always use percentages. makes life so much easer. Good advice for the slackers though.
@websquadron
@websquadron 6 күн бұрын
@KillahManjaro Okey dokey. /* Set the root font size to 100% to be better for Web Accessibility*/ html {font-size: 100%;} /* If you prefer to set it to 10px for easier rem calculations */ html {font-size: 62.5%;} /* 1rem = 10px */
@websquadron
@websquadron 6 күн бұрын
@Gearyco Totally agree.
@KillahManjaro
@KillahManjaro 5 күн бұрын
@@websquadron Thx
@QuaverloveStudio
@QuaverloveStudio 6 күн бұрын
Brilliant! Great template! Thanks, Imran.
@visualmodo
@visualmodo 2 күн бұрын
Really good video!
@edywerder
@edywerder 4 күн бұрын
Thanks for this video
@websquadron
@websquadron 4 күн бұрын
No problem
@jaseyarm
@jaseyarm 5 күн бұрын
Thanks Imran mate ✌
@felixrivera9298
@felixrivera9298 6 күн бұрын
Very helpful, Imran!
@websquadron
@websquadron 6 күн бұрын
Glad it was helpful!
@dan_kay
@dan_kay 6 күн бұрын
That saves so much time!
@websquadron
@websquadron 6 күн бұрын
PS - I just updated the Root HTML: /* Set the root font size to 100% to be better for Web Accessibility*/ html {font-size: 100%;} /* If you prefer to set it to 10px for easier rem calculations */ html {font-size: 62.5%;} /* 1rem = 10px */
@samwillun
@samwillun 3 күн бұрын
hi bro, I would like to ask if I add the woff2 font to the Elementor custom font library before I add this CSS code?
@websquadron
@websquadron 3 күн бұрын
If you’re adding to the custom font method then no need to use this snippet
@samwillun
@samwillun 3 күн бұрын
@@websquadron thank you so much🤠
@sakelis368
@sakelis368 6 күн бұрын
When I entered the ccs, an asterisc wrote the following before all h1, h2...: Expected («absolute-size» | «relative-sizes | «length | ‹percentage» | inherit) but found *clomp(2.5rem, 1.75rem + 3w , 4rem)'.
@websquadron
@websquadron 5 күн бұрын
Did you use the CSS pasted as is?
@albezar
@albezar 6 күн бұрын
Does this mean that you prefer using the TAGS to change the font sizes and don't use the GLOBAL fonts styles anymore? I've set my fonts in the globals and never change the styles via the tags. Can you explain briefly why you don't use the the global style anymore if you don't? please get back to this question soon. Thanks Imran.
@websquadron
@websquadron 6 күн бұрын
I only use the Global Fonts for the Font Families. I don't set the size or weight there (like ever-ever). Rather than set the size in the Global Typography, adding CSS makes standardising easier and more efficient. Especially if you use the CSS ID to set alternate sizes for Hero Banners, or other parts of the site.
@albezar
@albezar 6 күн бұрын
thanks for rapid response. So you don't put any styles in the Global Fonts like I have currently. As an example I put a heading widget and use the tag H1 but then choose the preferred style that I have set up in the Global Fonts like "Title XL, Title L, Title M" etc.
@websquadron
@websquadron 6 күн бұрын
@@albezar You can do that, but I prefer to leave my Sizing Styles as CSS because you could have a Title for all pages and then a separate Title for Hero. No right or wrong answer here :)
@jonathansanchez5459
@jonathansanchez5459 4 күн бұрын
Hello Imran. When I changed the font weight value to 100, nothing happened. I'm testing on a new wordpress. Do you know how to solve it?
@websquadron
@websquadron 4 күн бұрын
Have you added the weight anywhere else? Which Theme are you using?
@jonathansanchez5459
@jonathansanchez5459 2 күн бұрын
@@websquadron I am using Hello Theme. I appreciate your help, how can I fix that? Thank
Elementor Beta 3.23 just dropped with 3 BIG Features!
13:32
Web Squadron
Рет қаралды 10 М.
Relative colors make so many things easier!
13:16
Kevin Powell
Рет қаралды 29 М.
Nutella bro sis family Challenge 😋
00:31
Mr. Clabik
Рет қаралды 10 МЛН
Alat Seru Penolong untuk Mimpi Indah Bayi!
00:31
Let's GLOW! Indonesian
Рет қаралды 15 МЛН
THEY WANTED TO TAKE ALL HIS GOODIES 🍫🥤🍟😂
00:17
OKUNJATA
Рет қаралды 18 МЛН
`const` was a mistake
31:50
Theo - t3․gg
Рет қаралды 126 М.
The App YOU or I Could Have Built... ShipFast
6:52
Travis Media
Рет қаралды 121 М.
Learn CSS fonts in 7 minutes! 🔤
7:21
Bro Code
Рет қаралды 16 М.
It's time to talk about these UI trends
9:09
Juxtopposed
Рет қаралды 469 М.
Top 10 CSS One Liners That Will Blow Your Mind
13:34
developedbyed
Рет қаралды 917 М.
I cannot live without this WordPress plugin anymore (ASE)
12:18
Rino de Boer
Рет қаралды 23 М.
A flexbox trick to improve text wrapping
5:02
Kevin Powell
Рет қаралды 184 М.
Layout and Reading Order | Rachel Andrew | CSS Day 2024
50:47
Web Conferences Amsterdam
Рет қаралды 1,9 М.
Easily Improve Your Web Design (With Example)
17:59
Flux Academy
Рет қаралды 26 М.
Responsive Typography with CSS Clamp
8:37
Tom Is Loading
Рет қаралды 38 М.
Косички из морковки 🥕
0:40
Сан Тан
Рет қаралды 3 МЛН