Font Clamp Crash Course

  Рет қаралды 7,403

Web Squadron

Web Squadron

Күн бұрын

Пікірлер: 52
@StarleneBreiter
@StarleneBreiter 3 ай бұрын
As always, your videos are super helpful, thanks so much!
@QuaverloveStudio
@QuaverloveStudio 5 ай бұрын
Great refresher. Thanks. Imran.
@drafted-swiss
@drafted-swiss 3 ай бұрын
Thank you so much Imran! This was super helpful for me! One question though: would you use clamps on Line Height too? To get a somewhat pleasing result, would you increase the numbers for the line height in your calculator to ensure readability? Thank you again for the topnotch content you providing to us!
@websquadron
@websquadron 3 ай бұрын
You can and I covered that in a separate video. My tip is that if your Min Font is 16px then add +5 to set the line height to be 21px, or if the Max font is 40px, then set the line height to be 45px. Or to keep it simple, set it to be 1em for all.
@MbonisiM
@MbonisiM 5 ай бұрын
2:53 thank you for the packs, i will try it out if I manage to get a client It is so detailed for ease understanding. Cheers😁
@websquadron
@websquadron 5 ай бұрын
You will get clients. Slow and steady.
@ohia5654
@ohia5654 5 ай бұрын
Nice! I was just writing CSS for this for WordCamp Granada. You should come!
@websquadron
@websquadron 5 ай бұрын
Next time!
@caknuckler
@caknuckler 5 ай бұрын
This is in the websquadron course which I highly recommend. A problem I have is I don’t know what size fonts should be on mobile , desktop etc. lots of conflicting info out there. I’ve set all my h1,h2 etc to certain sizes in Global fonts but mostly just guessing. Anyway this is great stuff as usual.
@chideradigitalfreak
@chideradigitalfreak 5 ай бұрын
According to Material Design guidelines for UI UX, the recommended font sizes for desktop, tablet, and mobile devices for heading elements (h1 to h6) are as follows: 1. Desktop - h1: 96px - h2: 60px - h3: 48px - h4: 34px - h5: 24px - h6: 20px 2. Tablet - h1: 60px - h2: 48px - h3: 34px - h4: 24px - h5: 20px - h6: 16px 3. Mobile - h1: 48px - h2: 34px - h3: 24px - h4: 20px - h5: 16px - h6: 13px These font sizes are part of the Material Design system and are optimized for readability and visual hierarchy across different screen sizes. Adhering to these recommendations can help create a consistent and user-friendly design experience for your website or application. Remember, these are suggested font sizes and can be adjusted based on your specific design needs and preferences. The goal is to ensure that the text is easily readable and maintains a clear hierarchy within the content. You can do a Google search about material design system.
@xenicmark
@xenicmark 5 ай бұрын
If I remember correctly, the desktop viewport size is the default viewport. Everything inherits from that. Even the ultra-wide viewport sizes. So if make any other layouts for wider viewports, they still inherit from the desktop. I learned this the hard way after doing all these calculations and having to go back and do them all over again.
@websquadron
@websquadron 5 ай бұрын
Yup buts that why you set the max and min there :)
@DavidBenamou
@DavidBenamou 5 ай бұрын
Thank you so much. Very usefull and perfectly explained. As ever....
@websquadron
@websquadron 5 ай бұрын
Glad it was helpful!
@JulietteBurns-zq7dj
@JulietteBurns-zq7dj 5 ай бұрын
Hi Imran, thanks for another lucid explanation. One question: do the Elementor breakpoint settings override font clamp settings? Should I clear them? Thanks.
@websquadron
@websquadron 5 ай бұрын
Always clear them and add for clamp for the Desktop
@DMLeBeau
@DMLeBeau 5 ай бұрын
I have used it before, and it works great. I never used it for images.
@websquadron
@websquadron 5 ай бұрын
Can work really well when you have an image needs to shrink. If you're using % size, then it won't matter.
@rg-web-design
@rg-web-design 5 ай бұрын
Here's a challenge for you! Sometimes, I like to keep a header logo or an image at a certain VW. So, as the screen width shrinks, the VW of the logo / image increases. Is there a calculation for a 'reverse clamp' for such scenarios?
@websquadron
@websquadron 5 ай бұрын
Can you give me an example; So when the screen width is 1200px, then the image size is x%. And when it grows to 1600px then the image size is y%
@rg-web-design
@rg-web-design 5 ай бұрын
@@websquadron Yeah, so lets say I have a header logo. At 400px, it needs to be 10vw but at 1100px, it needs to be 20vw. How would you calculate a clamp for that?
@websquadron
@websquadron 5 ай бұрын
VW Clamp !
@websquadron
@websquadron 5 ай бұрын
@@rg-web-design Here you go! kzbin.info/www/bejne/jGOoiIZ5nrp2mbcfeature=shared Enjoy!!!
@rg-web-design
@rg-web-design 5 ай бұрын
@@websquadron Cheers, but I gave the wrong example! What I meant was that at desktop, the VW should be 10 and on mobile it should be 20, so it INCREASES as the screen shrinks. Like a 'reverse clamp'. Sorry for the confusion, but I hope that clears things up!
@chibuzorstanley8888
@chibuzorstanley8888 5 ай бұрын
Great Video!! Thanks for sharing 💪🏽🫡 Can this also be used for line height?
@websquadron
@websquadron 5 ай бұрын
Yes, I add 5px or 0.325REM for the Line Height
@chibuzorstanley8888
@chibuzorstanley8888 5 ай бұрын
Great, Thank you@@websquadron
@eafdafev
@eafdafev 28 күн бұрын
Love the tool, but I'm sorry to say I cannot seem to edit the green sections in the excel workbook. I've tried 3 browsers without any luck. Did a permission level change on the excel workbook and those green sections are no longer editable? Thank you
@websquadron
@websquadron 28 күн бұрын
Thanks for letting me know. OneDrive for some reason removed the 'interaction' setting. Not sure why? It's been manually added now :)
@SuburbanPhilosophy
@SuburbanPhilosophy 5 ай бұрын
nice trick but tbh, how many normal users shrink windows of browsers? in special now when 70% of trafic come from mobile devices?
@websquadron
@websquadron 5 ай бұрын
In the old days, people would try to build sites for many mobile devices, but with Font Clamp your text will appear reasonably sized whether the mobile is 350px width or 490px.
@PameFigueroa
@PameFigueroa 5 ай бұрын
Thank you! I have a question, please if you can help me with this, what happen with the bigger screens? like 1920x1080? what happen in between the 1920 and the 1100? because in the 1920 the font size of a screen of 1110 looks very small. thank you again! you are a great guide, the best
@websquadron
@websquadron 5 ай бұрын
You could set the maximum to be 1920 or higher and it would also depend on if you are building with boxed width or full width
@PameFigueroa
@PameFigueroa 5 ай бұрын
other question takes breaks my head... how to deal with the height of browser navbar in responsive design? because all its calculate if there was not a browser navbar and all devices had it, all users have to watch the website in browsers with navbars! in vh for examples, do not work exactly in 100% of heigth, please if you can help me with this too, thank you!
@PameFigueroa
@PameFigueroa 5 ай бұрын
@@websquadron thank you so much, if you can help me with the other question please, i dont get anything about that subject, thank you again!!
@pburmester
@pburmester 5 ай бұрын
Great video, as always. One question, shouldn't the min and max value be in relation to the size of my Elementor containers? Also, don't you think this should be some Elementor native function? Thanks again Imran!
@websquadron
@websquadron 5 ай бұрын
4 June 2024
@pbella29
@pbella29 5 ай бұрын
Hey - great video. When using Elementor, where can you paste this as CSS rather than entering one-by-one in the editor? Many thanks!
@websquadron
@websquadron 5 ай бұрын
Site Settings - Custom CSS, or you can add to Appearance > Themes > CSS.
@meisterleise
@meisterleise 5 ай бұрын
Hey imran, thank for this video. I'm using this fluid font styling since several years. Your website calculator is very nice. Anyway I miss one important thing: the fluid calculation for the line-height. And one more thing: how did you build the calculator? would be very cool to see a tutorial about that one day! 😉
@websquadron
@websquadron 5 ай бұрын
I tend to add 5pm or 0.325 rem for line height. So if your max size is 5 rem then the line height is 5.325
@meisterleise
@meisterleise 5 ай бұрын
@@websquadron Hmm - I think that's not good. If your e.g. H1 uses the fluid system the line-height should be fluid also. When your h1 goes from 2.7rem to 4rem the line-height should not be fixed 4.325, because it would look ugly to the 2.7rem - don't you agree?
@clintt5266
@clintt5266 Ай бұрын
I'm confused by the Global Fonts styling vs Typography. As I understand it, Typography (H1, H2, H3 etc) is for *SEO* and not necessarily styling. For example, sometimes you want your headline big, but it's not something that you want Google to think is the most important thing on your page - so a smaller sized text block lower on the page might have all the SEO text you want to tag as H1. I've always felt having H1 largest by default is not a good strategy.
@websquadron
@websquadron Ай бұрын
See this: kzbin.info/www/bejne/qqrGaKt-qsZpjNEfeature=shared
@randbaldwin
@randbaldwin 5 ай бұрын
When do you see font sizes jumping? When you resize your browser window? I love smooth scaling fonts, but I don't sit there and resize my browser to see what happens if I'm just browsing. My browser is what it is and I see it at that size. Most people just show up and see what they see. What is important is that what they see is good. What is less important is how it acts if they gradually resize their browser.... Who does that besides us dev geeks?
@websquadron
@websquadron 5 ай бұрын
4 June 2024
@websbox
@websbox 5 ай бұрын
font size ok. There's no problem with that. what about line heights?🤔
@websquadron
@websquadron 5 ай бұрын
You can do the same there too. I tend to set my Line Height to be 5 PX or 0.325 REM. So if your Font is 16 PX (1 REM), then line-height set at 21 (1.325 REM).
@aranchin-yo6wy
@aranchin-yo6wy 5 ай бұрын
Do you only apply thos to one viewers size say desktop size anf then it will adjust or do i we have to put the formula in everysingle breakpoint?
@websquadron
@websquadron 5 ай бұрын
Just desktop and it passes through
@aranchin-yo6wy
@aranchin-yo6wy 5 ай бұрын
@@websquadron awesome! Thank you
Do clients prefer simple websites
3:18
Web Squadron
Рет қаралды 1,5 М.
Slash your WordPress Plugins for Code Snippets
18:35
Web Squadron
Рет қаралды 11 М.
БУ, ИСПУГАЛСЯ?? #shorts
00:22
Паша Осадчий
Рет қаралды 3 МЛН
How Many Balloons To Make A Store Fly?
00:22
MrBeast
Рет қаралды 142 МЛН
This CSS standardises your Responsive WordPress Fonts!
10:14
Web Squadron
Рет қаралды 3,2 М.
Flex Container Crash Course - Elementor Wordpress Tutorial
20:51
Web Squadron
Рет қаралды 4,4 М.
Boost SEO Pop-Ups: The NEW Off-Canvas Elementor Widget
10:00
Web Squadron
Рет қаралды 9 М.
ChatGPT Canvas Explained: Enhancing Productivity Effortlessly
13:53
Clamp your Images with VW Sizes - Free Tool
3:30
Web Squadron
Рет қаралды 2 М.
Loop Grid Crash Course - Elementor WordPress Tutorial
23:58
Web Squadron
Рет қаралды 15 М.
Improving the Page Speed can Worsen it
10:42
Web Squadron
Рет қаралды 1,5 М.
Complete SEO Course for Beginners: Learn to Rank #1 in Google
1:57:03
ACF Pro for FREE - Has WordPress gone too far??
12:48
Web Squadron
Рет қаралды 4,5 М.
БУ, ИСПУГАЛСЯ?? #shorts
00:22
Паша Осадчий
Рет қаралды 3 МЛН