Understand EM & REM Font Size for Elementor and what is the Parent and the Root HTML?

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ม.ค. 2025

ความคิดเห็น • 86

  • @websquadron
    @websquadron  3 ปีที่แล้ว +5

    If you like what you see - then please do Like and Share!
    And if you don't - then let me know - because we always want to improve.

  • @mnburch
    @mnburch 2 ปีที่แล้ว +4

    Hi Imran. This is probably not a typical comment you receive, but here goes. I am turning 75 this December and live in Florida with my wife of 45 years. We have four children and six grandchildren. My wife taught elementary school-aged special needs children when we lived in Nashville, Tennessee (this will all come together eventually). I am a retired computer programmer and web developer and took many live and online training classes during my working career. I was a Divi subscriber for two years and watched tons of Divi tutorials on TH-cam during that time. About a year ago or so, I switched over to Elementor and recently upgraded to Elementor Pro. Considering all the live and online classes, training, and tutorials I've had over decades, including all of the Divi and Elementor tutorials I've viewed, you are one of the best, most gifted teachers I've ever encountered. I think you would make an exceptional school teacher, and I mean very exceptional. I wish all of my school teachers could have been like you. I know I would have done so much better. You make learning fun and informative. Please, if you ever encounter any opportunities to exercise your exceptional teaching gift with school-aged children, don't pass them by. You, and the children, will be greatly enriched as a result. May God richly bless you.

    • @websquadron
      @websquadron  2 ปีที่แล้ว +4

      My eyes welled on reading that. Your kind words and sincerity has blown me away. A huge thanks.

    • @mnburch
      @mnburch 2 ปีที่แล้ว +1

      @@websquadron Absolutely my pleasure and honor. Please keep up what you're doing and take every opportunity to share your unique teaching gift, Imran.

    • @websquadron
      @websquadron  2 ปีที่แล้ว +2

      @@mnburch I hope to be there for you too!

    • @mnburch
      @mnburch 2 ปีที่แล้ว +1

      @@websquadron You have been, are, and will be I'm sure. I can tell teaching is ingrained in you in a very special way. I really don't know anything about you personally, but I know God has given you a wonderful, unique gift of teaching. Have you ever considered pursuing teaching as a career? Please forgive me if I'm getting too personal. There is such a dearth of teachers of your caliber in the world today. Children desperately need teachers like you.

    • @websquadron
      @websquadron  2 ปีที่แล้ว +1

      @@mnburch I have many times considered teaching but have often stopped at the stages of applying or looking deeper into it.

  • @Clarity-808
    @Clarity-808 ปีที่แล้ว +2

    Thank you for making these advanced Elementor/CSS tuts, we are an underserved niche!

  • @Dhananjaynaidu91
    @Dhananjaynaidu91 2 ปีที่แล้ว +1

    Spent many weeks fudging around, well done

  • @amiebrown7594
    @amiebrown7594 ปีที่แล้ว

    This is the first time these concepts have made a bit of sense to me. Thank you so much!

    • @websquadron
      @websquadron  ปีที่แล้ว

      This might interest you:
      th-cam.com/video/DGl5Zl586i4/w-d-xo.html

  • @radialtech
    @radialtech 2 ปีที่แล้ว +4

    BEST video explaining EM and REM in Elementor - thanks for explaining where the Parent and Root are controlled from. Much appreciated!! Subb'd

  • @stevemarrs3149
    @stevemarrs3149 3 ปีที่แล้ว +1

    How did I miss this?! There should be plenty of shiny happy people switching to REM after this video...

    • @websquadron
      @websquadron  3 ปีที่แล้ว +2

      Totally :) Trying to work out Parent v Root HTML - let alone what they were confused me so much - so I ended up using Pixels for fonts for a long time. Now I feel okay with using REM :)
      Okay.... I'm just going to blast out 'Losing my Religion' now...

  • @NeilSnapePhotography
    @NeilSnapePhotography ปีที่แล้ว +1

    Finally, thank you so much, a very important video! Now I have an idea of why and where these settings are useful. I have been using REM without knowing why.

  • @fazanash
    @fazanash 2 ปีที่แล้ว +1

    You give me what I looked for, greaaat

  • @peerlessaquacare
    @peerlessaquacare 2 ปีที่แล้ว +1

    Brilliant! Simply Brilliant!

  • @OscarObians
    @OscarObians 3 ปีที่แล้ว +2

    Thanks for making this video Imran. The missing piece for me was finding what controls the EM vs REM sizing. Thanks a lot

    • @websquadron
      @websquadron  3 ปีที่แล้ว +2

      Same here. People mention the Parent or Root HTML but never explained where. So glad that we got there :)

    • @worksmartomnimediatv5890
      @worksmartomnimediatv5890 3 ปีที่แล้ว +1

      Do you have any video tutorial explaining the basics and difference between PX, EM, REM, VH and other size options Elementor uses, best practices for use of each, when you should use each of them and which is best for responsiveness. You know the basic stuff.

    • @websquadron
      @websquadron  3 ปีที่แล้ว +2

      @@worksmartomnimediatv5890 Not a detailed video, but I did this PX v EM video: th-cam.com/video/dKUHLAB0Fyw/w-d-xo.html
      My Recommendations are:
      Only use PX for margins, padding and images.
      Use REM instead of EM, just because it's better responsively.
      VH - I only use for Sections when I make them Full Screen. Never bothered or found a good reason to use it for fonts.

    • @worksmartomnimediatv5890
      @worksmartomnimediatv5890 3 ปีที่แล้ว +1

      @@websquadron Thank you so much!

  • @reniseporter9119
    @reniseporter9119 2 ปีที่แล้ว +1

    (Girly Screams Happiness) Thank you so much . I have spent weeks correcting for desk top to phone.

  • @ozartdesign
    @ozartdesign 3 ปีที่แล้ว +1

    Holy Crap... thanks Imran that makes so much sense finally!! Great video, really easy to follow :)

    • @websquadron
      @websquadron  3 ปีที่แล้ว +1

      For almost 12 months, the use of EM and REM used to plague me, but once I made the 'Eureka' discovery fo exactly what the Parent and Root HTML was, I had to share :)))

  • @Pedant_Patrol
    @Pedant_Patrol 3 ปีที่แล้ว +1

    Dude, I am loving this content!

    • @websquadron
      @websquadron  3 ปีที่แล้ว +1

      Glad you enjoy it! Great to have you :)

  • @amrfarrouh
    @amrfarrouh 2 ปีที่แล้ว +1

    Thank you finally I understand it with easy way

    • @websquadron
      @websquadron  2 ปีที่แล้ว +2

      Yessssssss :))))))))

  • @antoniomaria2012
    @antoniomaria2012 2 ปีที่แล้ว +1

    Great video! Do I need to set the REM values for mobile?

    • @websquadron
      @websquadron  2 ปีที่แล้ว +1

      I would and you may want to see this: th-cam.com/video/kKG5dabkEuc/w-d-xo.html
      And: th-cam.com/video/oWONLR_arA0/w-d-xo.html

  • @DanfredSerrano
    @DanfredSerrano ปีที่แล้ว

    Just the explanation I was looking for! Thanks @Web Squadron! One quick question tho... I'm having an issue with the hero section of a website I'm currently building for a client. I work on a 24" screen and my laptop is 17", screen res in 1920*1080. My client has a small laptop, I believe 13" or 14". All my hero section is built with VW and VH and percentages, which works nicely for now, but when he visualizes the page in his laptop, the text displays massively, and some elements overlap with the nav menu. I asked what screen res he had, and said 1920*1080, just like mine, so I'm guessing this "shouldn't happen" since the screen resolutions are the same regardless of physical screen size? Is this correct? or am I missing something here?... This is exactly the reason I was researching for EMs and REMs right now... thanks in advance!

    • @websquadron
      @websquadron  ปีที่แล้ว

      You're right, it shouldn't though this where I would advise on using Clamp Typography.
      th-cam.com/video/pV4UJ_rL-jo/w-d-xo.htmlfeature=shared

  • @Ife-Emmanuel
    @Ife-Emmanuel 2 ปีที่แล้ว +1

    This is really helpful

  • @alquimia_consciente
    @alquimia_consciente ปีที่แล้ว

    This is amazing! Thanks! Amazing content!

    • @websquadron
      @websquadron  ปีที่แล้ว

      This updated version is much more helpful.
      th-cam.com/video/oWONLR_arA0/w-d-xo.html

  • @fulilaoji7483
    @fulilaoji7483 2 ปีที่แล้ว +1

    Great explanation, thank you! 👍👍👍

  • @lisastackhouse1055
    @lisastackhouse1055 2 ปีที่แล้ว +1

    Thank you for this well-explained video of fonts!! Is there any concern of elementor wiping out the custom CSS when they do an upgrade to a newer version of their software?

    • @websquadron
      @websquadron  2 ปีที่แล้ว +2

      No, the Code will be fine - but to be extra-extra safe - I add my codes to Code Snippets - which is Free - and created by Verdi Heinz (who works for Elementor).

    • @lisastackhouse1055
      @lisastackhouse1055 2 ปีที่แล้ว

      @@websquadron Thank you! I appreciate the tip on using code snippets!

  • @theresasouthern8631
    @theresasouthern8631 ปีที่แล้ว

    Not at all confusing! You made perfect sense. I do have one question though. If you don't set the root in your CSS, does it just get it from the person's browser? And would this be a preferred way of doing it?

    • @websquadron
      @websquadron  ปีที่แล้ว

      Yes from the browser but most are set as 16px so it’s quite consistent

  • @robinwoodactivitycentres1526
    @robinwoodactivitycentres1526 2 ปีที่แล้ว +1

    Why are you leaning towards REM over EM?

    • @websquadron
      @websquadron  2 ปีที่แล้ว +3

      Force of habit with no scientific explanation.

  • @MatichekYoutube
    @MatichekYoutube ปีที่แล้ว

    one thing to point out, is that rem is really powerful in colab with @media queries cause you can nicely scale the fonts for different sizes with few lines of css

    • @websquadron
      @websquadron  ปีที่แล้ว +1

      I’ve now moved onto using them with clamp. Make sure you see the clamp video I put out a few weeks ago :)

    • @MatichekYoutube
      @MatichekYoutube ปีที่แล้ว

      @@websquadron ohh snap, ok, will take a look, thanks

  • @alindaalvin8049
    @alindaalvin8049 ปีที่แล้ว

    you're the best brother

    • @websquadron
      @websquadron  ปีที่แล้ว

      See this updated video: th-cam.com/video/kKG5dabkEuc/w-d-xo.html

  • @TheZebaldo
    @TheZebaldo 3 ปีที่แล้ว +1

    Thx, nice video dude. Now I now the difference, and how it works together.

  • @BrockBarr
    @BrockBarr 2 ปีที่แล้ว

    REM is my preferred, simply because I can get more tweakability from my CSS code. Also, REM had that great song, Shiny Happy People! 😉

    • @websquadron
      @websquadron  2 ปีที่แล้ว

      Love the Band REM. Losing my Religion always hits me deep. Totally agree on REM for Fonts.

  • @polarendtech
    @polarendtech 3 ปีที่แล้ว +1

    Really well done! For sure answered more questions than confused me :) I may have missed it, but, Why are you leaning towards REM? And, why would you use REM over EM? It seemed the only difference is where you put the base line px size to scale off of (Elementor typography vs theme additional css - parent vs root) Yes, I know it is a difference, but I don't see why it is significant....
    Thank you!!

    • @websquadron
      @websquadron  3 ปีที่แล้ว +4

      Apparently after speaking to many, REM reacts better for responsive sizing. It's all to do with the HTML being the CORE UNIT, thus if the HTML is 20px, then everything else will run off that. It does get complicated but you will find more people leaning to REM now :)

    • @worksmartomnimediatv5890
      @worksmartomnimediatv5890 3 ปีที่แล้ว +1

      @@websquadron So I guess using px to get everything pixel oerfect is all a fallacy? Asking for a friend...🤓🤔

    • @websquadron
      @websquadron  3 ปีที่แล้ว +2

      @@worksmartomnimediatv5890 Yes. Just use PX for margin/padding and image sizing.
      REM for fonts is a winner :)

  • @danygingras7782
    @danygingras7782 2 ปีที่แล้ว

    woo I was looking for this. Now I have to redo few website I guess ^^

    • @websquadron
      @websquadron  2 ปีที่แล้ว +1

      Only if the time is worth it :)

  • @cw5986
    @cw5986 2 ปีที่แล้ว +2

    Great explanation, thank you! Too bad I didn't find this video 10 videos ago.

  • @scottsspiderman
    @scottsspiderman ปีที่แล้ว

    Hello, what video should i watch. I have 2 columns and when I stretch they both lose there sizing and it looks horrible

    • @websquadron
      @websquadron  ปีที่แล้ว

      You could set their Custom Width in the Advanced Tab

  • @adied7725
    @adied7725 3 ปีที่แล้ว +2

    This is a superb video, at last someone who really tries to explain this easily........i was looking at the other video and now kinda stuck on what really are the best overall website settings for hello theme with elementor for font sizes for web please.
    For:
    H1 to H6 desktop & mobile? sizes rem / em
    Sub Heading heading desktop/ mobiles? em/ rem
    Body size desktop/mobile em/rem?
    i would love to know what you use as a guide line, please.
    Thanks for making great videos easy for us

    • @websquadron
      @websquadron  3 ปีที่แล้ว +3

      Great question.
      It does depend on the Spec and what you're going after.
      I leave the ROOT HTML as 16PX, thus no need to modify.
      H1 = 3 REM
      H2 = 2.5 REM
      H3 = 2 REM
      Text = 1 REM, but sometimes 1.2 REM

  • @clevermissfox
    @clevermissfox ปีที่แล้ว

    The code is not in description

    • @websquadron
      @websquadron  ปีที่แล้ว

      For the Root HMTL?
      .root {
      font-size: 16px;
      }

  • @cupa
    @cupa 2 ปีที่แล้ว

    Очень важная и интересная информация, смотрю не смотря на то что её преподносят абсолютно мерзко (в этом видео)

    • @websquadron
      @websquadron  2 ปีที่แล้ว

      Can you add that in English?

    • @cupa
      @cupa 2 ปีที่แล้ว

      @@websquadron Yes i can )

  • @frontweb9984
    @frontweb9984 ปีที่แล้ว

    hello Emran,
    the text is larger when opening the website in Facebook internal browser.
    and looks good on normal browsers.
    how to solve this please?

    • @websquadron
      @websquadron  ปีที่แล้ว

      Not sure about why that happens

  • @BalloonSchool
    @BalloonSchool ปีที่แล้ว

    I really liked that you want to point out the differences as non of the other videos talk about it deeply. BUT... sadly I still didn´t get it :(

    • @websquadron
      @websquadron  ปีที่แล้ว +1

      Watch this updated version :)
      th-cam.com/video/kKG5dabkEuc/w-d-xo.html

    • @BalloonSchool
      @BalloonSchool ปีที่แล้ว

      @@websquadron thanks a lot! for you quick response - I will watch the new version right away. Btw do you have also a video about "why its possible (yes I know this is a very basic question) to change the page title / tagline in the WP Settings, in the Theme Settings and then also on top in the Page Settings?" Its very confusing and what would be the right way to do this?

  • @sajjadabouei6721
    @sajjadabouei6721 3 ปีที่แล้ว +1

    perfect thank you

  • @ElementoryMyDearWatson
    @ElementoryMyDearWatson ปีที่แล้ว

    If changing the root (html) font size from 16 px to something smaller, best to use a percentage value rather than a fixed pixel size as this impacts accessibility should someone want to increase their browser font size in the appearance settings. 10 px is 62.5% of 16 px, so the code should be html {
    font-size: 62.5%;
    }

    • @websquadron
      @websquadron  ปีที่แล้ว

      I would go deeper and suggest using Font Clamp(). See this: th-cam.com/video/DGl5Zl586i4/w-d-xo.html

    • @ElementoryMyDearWatson
      @ElementoryMyDearWatson ปีที่แล้ว

      @@websquadron I have used a number of online clamp calculators, but as you point out, this is great to be able to copy all settings at once to paste into one's CSS location. Very useful tool, many thanks Imran

  • @Releasly
    @Releasly 2 ปีที่แล้ว +1

  • @stuartibbotson7179
    @stuartibbotson7179 ปีที่แล้ว

    epic

  • @VSongu
    @VSongu 4 หลายเดือนก่อน

    Great thank you!