A Full Guide to CSS UNITS!

Sdílet
Vložit
  • čas přidán 1. 06. 2024
  • 💖 Show your support by checking out my courses!
    developedbyed.com
    -------------------------------------------------------------------------------------------------
    CSS Units are quite hard to wrap your head around. In this episode we will look at the most popular CSS Units out there from px, rem, em, vh, vw and how they help in a responsive design in CSS. I am really happy to say that new changes are coming to this channel, focusing more on the fundementals of software and hardware engineering.
    -------------------------------------------------------------------------------------------------
    👨‍💻Connect with me
    Twitter: / developedbyed
    Instagram: / developedbyed
    Github: github.com/developedbyed/
    -------------------------------------------------------------------------------------------------
    📖Chapters
    00:00 Channel Changes
    01:30 Pixels
    02:20 REM
    03:20 62.5% Hack
    04:25 Margin and Padding Gotchas
    06:52 Ems
    08:08 CH and paragraphs
    09:00 Percentages
    09:35 Images and sizing
    10:58 VH and min height
    11:32 VW and viewports
    -------------------------------------------------------------------------------------------------
    🎶 Dope music
    C Y G N - Emotions chll.to/bfeb2b66
    C Y G N - You chll.to/c89d5030
    C Y G N - Beautiful chll.to/a9246a7a
    #programming #css #webdevelopment
  • Věda a technologie

Komentáře • 33

  • @asyncrohan
    @asyncrohan Před 10 měsíci +13

    Hey brother , thanks a lot you are the best frontend teacher i have ever seen , i just wanna thank you because only because of you i learned css and mastered tailwindcss and thanks for this video too , i hope one day i will meet you and thank you face to face 😊

  • @justpassingbylearning
    @justpassingbylearning Před 10 měsíci +8

    Your videos are the reason I got a career in web development. The projects in my portfolio were based on your videos. Thanks for all the hard work and great content. 5 years ago you helped me out in a large way but just doing what you love

    • @developedbyed
      @developedbyed  Před 9 měsíci +3

      That’s amazing to hear! I’d love to see your work!

    • @justpassingbylearning
      @justpassingbylearning Před 9 měsíci

      @@developedbyed if I still had my portfolio from then I would show you. I remember the ball one being a big hit during my interviews

  • @tommy2naans
    @tommy2naans Před 10 měsíci +4

    Love this video, more classic ed content. Im glad you are going back to foundations.

  • @4115steve
    @4115steve Před 10 měsíci +3

    I like the direction. It seems to many channels focus or react. I plan to use the JAM stack with astro and three JS.

  • @bundesdavid
    @bundesdavid Před 10 měsíci +2

    I love to chill out in the back end and do funny stuff with databases and terminal and stuff. But to build something for others the frontend is just absolutely necessary. I'm not a fan of fronend development, but your channel makes it fun and chilled out for me. Thank You!
    I am looking forward to other contents! Arduino and Unity are really cool topics :D

  • @grim.reaper
    @grim.reaper Před 10 měsíci

    Ohh now I understand why different units are used 😭
    Thank you so much!!

  • @charllabuschagne2169
    @charllabuschagne2169 Před 10 měsíci

    Thanks Ed, always appreciate your content. Gems for this one is the :root hack and the ch units.

  • @royrms4618
    @royrms4618 Před 10 měsíci

    nice video ed thank you,
    whats the wallpaper used , i figured about love money rock n roll but it's not animated like yours

  • @maksudulhaque3227
    @maksudulhaque3227 Před 10 měsíci

    He always looks so happy and cheerful. Make a tutorial on that I would say😂

  • @maherylala2153
    @maherylala2153 Před 10 měsíci

    Rick must be hell of a good dev

  • @krayziekray9509
    @krayziekray9509 Před 10 měsíci

    Great video Ed. Do you have a plan to record updated videos for your Next.js course?

    • @developedbyed
      @developedbyed  Před 10 měsíci +2

      Yes, every course will be updated regularly 👍

  • @hjetwd
    @hjetwd Před 10 měsíci

    the em unit is very mobile, dynamic. don't be afraid to use it. a good example of when em is perfect: you need to coding a button. the button has states - different colors and sizes. for the "big button" state, we just need to specify a larger font size, and everything else will increase automatically.:
    .botton {
    padding: .5em 1em;
    margin-inline: .5em;
    font-size: var(--botton-size, 1rem); /* REM only here */
    border: .0625em solid black;
    border-radius: .375em;

    &.botton--small {
    --botton-size: .75rem;
    }
    &.botton--large {
    --botton-size: 1.25rem;
    }
    }
    we just change css variable using hard rem, and all soft em change automatically. it was a simple example from real life, but if the button does not need to change the font size, but you need to change the other sizes - em will not help here =)) em gives us an additional opportunity to write less code where possible

  • @raouftouati4711
    @raouftouati4711 Před 10 měsíci +1

    hi can you do a tutorial about image how they work inside the browser and how to control them with the css (sorry for my anglish) and thnks fot this tutorial

  • @taylortoast2
    @taylortoast2 Před 10 měsíci

    Can’t wait for the new content!

    • @developedbyed
      @developedbyed  Před 9 měsíci +1

      Cheers Taylor! You are the ultimate hype man hahaha

  • @thintzawhtun9676
    @thintzawhtun9676 Před 10 měsíci +1

    hey ed can u make role based access and permission tutorial for react?

  • @WyzrdCat
    @WyzrdCat Před 10 měsíci

    Hahahaha 💯 "Cmon man. Get a calculator" my thoughts exactly whenever I see this hack lmao

  • @oynx.
    @oynx. Před 10 měsíci

    Hi can you tell me how can create animation like " paramount pictures Website loading stars " when it's load

  • @BMikel
    @BMikel Před 10 měsíci

    Nasa tshirt is first that cought my eye😂 Cool

  • @sivadhanushuppalapati4041
    @sivadhanushuppalapati4041 Před 10 měsíci

    hey bro, whats the font style you are using in VScode?

  • @michaelcypher5958
    @michaelcypher5958 Před 10 měsíci

    Thanks Ed

  • @hagopboghossian6841
    @hagopboghossian6841 Před 10 měsíci

    Yeh, it's awesome if you are starting microcontroller programming tutorials 👍👌

  • @dobrilbojilov8184
    @dobrilbojilov8184 Před 10 měsíci

    Good video😉

  • @utkarsh2126
    @utkarsh2126 Před 10 měsíci +1

    Hii, this is your Gorgeous friend from India❤

  • @GustvandeWal
    @GustvandeWal Před 10 měsíci

    Avoid using 100vw. At least know that it doesn't take into account the scrollbar that is visible on Windows. If not used with caution, every Windows visitor could be able to horizontally scroll your website about 17px.

  • @WyzrdCat
    @WyzrdCat Před 10 měsíci

    I think vw should almost always be overridden with dvw. Dvw accounts for scrollbars and shite

  • @matteomorettoo
    @matteomorettoo Před 10 měsíci +1

    Rick lol😅

  • @bilalmalkoc
    @bilalmalkoc Před 10 měsíci

    Browser zoom is scaling all pixel values together, so no need to fight rem complexity.

  • @RowafaEdits
    @RowafaEdits Před 10 měsíci

    Can I edit your CZcams videos?

  • @sillysquirrel9979
    @sillysquirrel9979 Před 14 dny

    thanks i hate it