The Difference Between Rem Em and Px CSS | When to use which? (Understanding PX Em Rem Elementor)

Поделиться
HTML-код
  • Опубликовано: 13 янв 2021
  • I dont like being pitched just as much as you do, however, if you're curious about how we help web designers beyond these videos the link below tell you more....
    www.agencyalchemist.com
    -----------
    Today in this video we are looking at the difference between rem em and px CSS units within web design and Elementor. I explain when you should use which and things to consider when using em and rem.
    Whether it is px vs em, or em vs rem, or even px vs rem, it can be a mind field knowing the difference and how these can affect your website design.
    You will also get an understanding Px Em Rem Elementor with a real-life example of my website using these CSS units.
    -----------
    For super fast and reliable website hosting. I recommend Siteground hosting: www.siteground.com/index.htm?...
    If you are thinking of signing up to Elementor, feel free to show appreciation to this channel and use our link here: be.elementor.com/visit/?bta=1...
    What I use for my videos →
    MacBook Pro 13-inch 2017: amzn.to/2J6M3kn
    Camera (Apple iPhone 12): amzn.to/38oL8V5
    Sound Recording (Blue Snowball Mic): amzn.to/3awuNAg
    External Speaker (Bose Soundlink Mini 2): amzn.to/3rie3CL
    Magic Mouse: amzn.to/3pcdGrL
    Agency Website →
    www.tristanparker.co.uk/
    Instagram →
    / thewebdesignlife
    -------
    // BUILD A WEBSITE STEP BY STEP
    • How to Make a Fitness ...
    Channel inspired by creators: Wes McDowell, Darrel Wilson, Create a Pro Website, Jesse Showalter, CharliMarieTV, Neil Patel, Flux
    TOP 5 WEBSITES EVERY WEB DESIGNER SHOULD VISIT: Mind-blowing web design | March 2020:
    • TOP 5 WEBSITES EVERY W...
    How To Create An eCommerce Website With Wordpress 2020 [ONLINE STORE!]: • TOP 5 WEBSITES EVERY W...
    • How To Create An eComm...
    Elementor Wordpress Tutorial - The Basics in 10 Minutes
    • Elementor Wordpress Tu...
    How to Make a WordPress Website with Elementor | (Best Elementor Tutorial):
    • How to Make a WordPres...

Комментарии • 73

  • @tristanparker
    @tristanparker  2 года назад

    🔥NEW course: Agency Alchemist Accelerator 🔥
    agencyalchemist.com/agency-alchemist-accelerator/

    • @filmgenius2
      @filmgenius2 Год назад

      Do you recommend not using Pixels at all? Just REM, EM, % and VH, VW

  • @rororaven568
    @rororaven568 11 дней назад +1

    Just started web dev like 3 months ago and got into tutorial hell, then walked away from it for a while. Came back and started fresh, and got lost on a CSS tutorial, quick search and found this video and now i have a better understanding. Even took some notes! thanks man :]

  • @shubhrajit2117
    @shubhrajit2117 11 месяцев назад +10

    Video starts at 1:26

  • @ezazahmed1028
    @ezazahmed1028 9 месяцев назад +1

    Man this is the great video I have found so far. I have seen a lot of videos on youtube but they are all useless for me as I didn't understand any single explanation of them. Thanks to you now my concept become fully clear. I wish your channel grows bigger in a short time.

  • @Siddhant_Sardar
    @Siddhant_Sardar Месяц назад

    Really cool explanation, Thanks for clearing out confusion.

  • @julixoxoxo1
    @julixoxoxo1 2 года назад +1

    The clearest video about this topic so far! Thanks!

  • @shawnastephens7021
    @shawnastephens7021 3 года назад +2

    This was EXTREMELY helpful! Thanks for sharing :)

  • @moseleenone7252
    @moseleenone7252 3 года назад +1

    Thanks a lot!! I shld hv learned these simple, but impt stuff, from the start, certainly crucial to responsive web design

  • @gideonmicdare
    @gideonmicdare 3 года назад

    Thanks man, straight to the point and clear

  • @srms15
    @srms15 6 месяцев назад

    Thank for the clarity on this topic!

  • @pixelgap
    @pixelgap 2 года назад

    Best explanation I found so far. Thank you

  • @20-krunaldhanawade80
    @20-krunaldhanawade80 Год назад

    very helpful it was very frustrating to know about font units now its very easy to understand after watching this video

  • @tristanparker
    @tristanparker  3 года назад

    🔥NEW Exclusive Elementor and Web Design Group 🔥
    facebook.com/groups/elementorwebdesign

  • @farhadshaon5595
    @farhadshaon5595 3 года назад

    yes, I was looking for a video on this topic for a long time. thanks for creating it.

    • @tristanparker
      @tristanparker  3 года назад

      You’re welcome. Hope it was useful

  • @jayreambonanza1991
    @jayreambonanza1991 11 месяцев назад

    This video helped me a lot! Thank you so much!

  • @akiljackson1200
    @akiljackson1200 Год назад

    nice! well explained, especially for visual learners like myself

  • @andreaavila607
    @andreaavila607 Год назад

    This video was so good! Thank you

  • @petermoore6561
    @petermoore6561 6 месяцев назад

    Nice vid man im actually in the middle of doing ems and rem on my course you explained everything really well 👍

  • @mhthmusicvideos
    @mhthmusicvideos Год назад

    Great stuff, many thanks!

  • @koladeabdulrahman3359
    @koladeabdulrahman3359 2 года назад

    thanks. found this really helpful

  • @abdulwahab2179
    @abdulwahab2179 2 года назад

    Great share, thanks mate

  • @MaheshhBalwan
    @MaheshhBalwan 3 года назад +2

    Thanks Tristan ✌🏻 you've perfectly explained in the video 🍻

    • @tristanparker
      @tristanparker  3 года назад +1

      You’re welcome. Glad you found it useful

  • @maksym9228
    @maksym9228 Год назад

    Awesome! Thank you so much!

  • @Haladir1989
    @Haladir1989 2 года назад

    it was very helpful, thank you so much!

  • @cekuhnen
    @cekuhnen Год назад

    Nicely done

  • @ShirBzz
    @ShirBzz 3 года назад +1

    Thanks for this video! very helpful 🙏
    How should i set the parant element? or how does elementor now what is the value of my px if i dont do anyting and juse choose em?

  • @MDJOY0460
    @MDJOY0460 Год назад +1

    great video

  • @mverma7845
    @mverma7845 5 месяцев назад

    Thanks Tristan 🔥content.

  • @marcellhazzard8650
    @marcellhazzard8650 3 года назад

    Hey, you helped me out a ton!... what font is your logo?

  • @adied7725
    @adied7725 3 года назад

    Hi thanks for some great videos I have signed up... Quick question I'm using astra Pro theme and elementor Pro.
    What do you recommend for font sizing for websites?
    Could you do a set up video in relation to
    Fonts sizes, theme colours, elrmentor container sizes and astra containing sizes... Please.
    I have also been looking at kadence theme as there seems to be an easier set up that can dynamically change colours and fonts of your them with elementor... Any thoughts much appreciated 😊

  • @bradleyandrewercole6349
    @bradleyandrewercole6349 2 года назад

    Thanks Man!!

  • @Motivious
    @Motivious Год назад

    Thank you!

  • @bartzakkenwasser1810
    @bartzakkenwasser1810 Год назад +1

    At 5:42 you say "main title has a size of 6 EM". But when you go to the digital market line you're talking about 0,82 REM but you point to the EM. Same with the paragraph. There you also talk about REM instead of EM.

  • @jarrodgordon
    @jarrodgordon 3 года назад +2

    So how does someone set the font size of the "parent element"? Does the desktop have to set to px and then that is the parent element?

  • @ericuk9481
    @ericuk9481 2 года назад

    Thanks, as you said, "very benificial".

  • @alan-muscat
    @alan-muscat 3 года назад +1

    Leaves too many questions unanswered. Thanks for trying.

    • @tristanparker
      @tristanparker  3 года назад

      Thanks for the comment. Apologies it didn’t quite answer all your questions. Appreciate the feedback.

    • @alan-muscat
      @alan-muscat 3 года назад

      @@tristanparker perhaps you could demonstrate in detail using Elementor rather than briefly.

  • @L8rCloud
    @L8rCloud Год назад +1

    Pixels are always pixels, sure BUT what about relative view size across today’s varied screen technologies from desktop screens to mobile displays, VR displays and soon to be Augmented Reality displays

  • @justinernest2363
    @justinernest2363 4 месяца назад

    but how to know what the parent and root elements pixle sizes are?

  • @denizhkilic
    @denizhkilic 2 года назад

    what about hero section height, section width, picture sizes with these values?

  • @egbenestaenow9904
    @egbenestaenow9904 3 года назад +1

    Thanks a lot😁😊😊

  • @stevechong65
    @stevechong65 2 года назад

    Thanks for the great tutorial! I have a suggestion, why not create a video and go more in-depth with the examples? Thanks again!

  • @DanfredSerrano
    @DanfredSerrano 8 месяцев назад

    Just the explanation I was looking for! Thanks @tristanparker . 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!

    • @tristanparker
      @tristanparker  8 месяцев назад

      Yes percentages can become messy. I’m sure you can switch the height value from percentage to ems on smaller devices. You can also add extra breakpoints into your elementor settings too.

  • @000SilaS000
    @000SilaS000 Год назад

    where are the parent and root elements? They relate to what ? What is the initial value ??

  • @fazanash
    @fazanash Год назад

    Question is, can we change the size of root elementor, if can where we can do this?, and still didn't know where is the location of parent elementor, I take the sample: if I use text widget with 1em font size (imagine that its a child) so what parent of the widget that will be parent for it?

    • @fazanash
      @fazanash Год назад

      just inspect it to find what the element above and thats the parent

  • @nialldcrowley
    @nialldcrowley 2 года назад

    In this context, what's a Parent Element?

  • @get8bit
    @get8bit 2 года назад

    WHERE DO YOU SET EM PARENT ELEMENT?

  • @muhammadfahim993
    @muhammadfahim993 3 года назад

    Thanks

  • @ErikL-bd7uj
    @ErikL-bd7uj 3 года назад +1

    Normally don't comment. Great Job!

    • @tristanparker
      @tristanparker  3 года назад

      In that case, I am honoured 😂 thank you for the kind words. How’s your web design journey going?

  • @SantoLucasST
    @SantoLucasST Год назад +1

    Now I know the difference between EMs and REMs but how about M&Ms?

  • @spennysimmo3006
    @spennysimmo3006 3 года назад +2

    Thanks. REM takes a multiple of the Root HTML element whereas EM takes a multiple of the parent element. In your Elementor example where the heading and all text had a setting of EM, where is the font size of the parent element set? What is the "Parent Element". Thanks

    • @SteveInQLD007
      @SteveInQLD007 3 года назад +2

      I wondered the same thing too and I noticed in the Elementor example it was set to EM but he called it REM so just a little confused there but i'll work it out

  • @jonathan-uwagboepromise3139
    @jonathan-uwagboepromise3139 3 года назад +1

    Nice but not really beginner friendly. Thanks bro.

  • @0oTHEJACKo0
    @0oTHEJACKo0 2 года назад

    At 3:42 shouldn't one of the child elements be 16 px instead of 18px, since it inherits it's value by the root not the parent?

  • @natsukinope9893
    @natsukinope9893 2 года назад

    「あなたのコンテンツはとても感動的です」、

  • @georgel4730
    @georgel4730 Год назад

    It would have been much easier to understand if you would have shown the differences directly in elementor.

  • @graszwalker4657
    @graszwalker4657 Год назад

    No answer to the question when to use which one

  • @milosgrujic9118
    @milosgrujic9118 Год назад

    Demistified finaly!

  • @henkmeerhof8647
    @henkmeerhof8647 5 месяцев назад

    It is a clear explanation of the difference between px , em and rem... but you didn't explain what the hell this is about!
    First of all even when px are an absolute number, it is not an absolute measure, as 16 px on a 72 ppi screen is not the same size as 16 px on a 150 ppi screen, the latter will be a little less than half the size of the first one, if you look at those screens. And in the end that is what humans do, they look at screens.
    What is an EM, this is a relative unit from typography and is older than your px. It is the imaginary square type is mounted on. In the old days this war very real and very physical as type where blocks of lead. The letter 'M' fitting on a square that is as large as an , you guessed it 'EM'. In typography there is also a thing as an EM-space and also an M-dash.
    So even before computing and the internet there was a relative unit called an M-square or EM which always id the size of the related font size.
    This is really what an em and thus an rem is, the size of a square that fits the letter 'M' of the font size (for em in that line, paragraph or 'block' as it is called in web-talk, and for the rem in the root of the HTML.
    Want to know more: designwithfontforge.com/en-US/The_EM_Square.html

  • @nysunra
    @nysunra Месяц назад

    This is confusing