A Full Guide to CSS UNITS!

Поделиться
HTML-код
  • Опубликовано: 10 июн 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
  • НаукаНаука

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

  • @asyncrohan
    @asyncrohan 10 месяцев назад +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 😊

  • @tommy2naans
    @tommy2naans 10 месяцев назад +4

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

  • @justpassingbylearning
    @justpassingbylearning 10 месяцев назад +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  10 месяцев назад +3

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

    • @justpassingbylearning
      @justpassingbylearning 10 месяцев назад

      @@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

  • @4115steve
    @4115steve 10 месяцев назад +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 10 месяцев назад +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

  • @charllabuschagne2169
    @charllabuschagne2169 10 месяцев назад

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

  • @grim.reaper
    @grim.reaper 10 месяцев назад

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

  • @raouftouati4711
    @raouftouati4711 10 месяцев назад +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

  • @thintzawhtun9676
    @thintzawhtun9676 10 месяцев назад +1

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

  • @royrms4618
    @royrms4618 10 месяцев назад

    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 10 месяцев назад

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

  • @krayziekray9509
    @krayziekray9509 10 месяцев назад

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

    • @developedbyed
      @developedbyed  10 месяцев назад +2

      Yes, every course will be updated regularly 👍

  • @taylortoast2
    @taylortoast2 10 месяцев назад

    Can’t wait for the new content!

    • @developedbyed
      @developedbyed  10 месяцев назад +1

      Cheers Taylor! You are the ultimate hype man hahaha

  • @michaelcypher5958
    @michaelcypher5958 10 месяцев назад

    Thanks Ed

  • @maherylala2153
    @maherylala2153 10 месяцев назад

    Rick must be hell of a good dev

  • @oynx.
    @oynx. 10 месяцев назад

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

  • @hjetwd
    @hjetwd 10 месяцев назад

    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

  • @BMikel
    @BMikel 10 месяцев назад

    Nasa tshirt is first that cought my eye😂 Cool

  • @sivadhanushuppalapati4041
    @sivadhanushuppalapati4041 10 месяцев назад

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

  • @WyzrdCat
    @WyzrdCat 10 месяцев назад

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

  • @hagopboghossian6841
    @hagopboghossian6841 10 месяцев назад

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

  • @dobrilbojilov8184
    @dobrilbojilov8184 10 месяцев назад

    Good video😉

  • @utkarsh2126
    @utkarsh2126 10 месяцев назад +1

    Hii, this is your Gorgeous friend from India❤

  • @matteomorettoo
    @matteomorettoo 10 месяцев назад +1

    Rick lol😅

  • @GustvandeWal
    @GustvandeWal 10 месяцев назад

    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 10 месяцев назад

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

  • @RowafaEdits
    @RowafaEdits 10 месяцев назад

    Can I edit your RUclips videos?

  • @bilalmalkoc
    @bilalmalkoc 10 месяцев назад

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

  • @sillysquirrel9979
    @sillysquirrel9979 23 дня назад

    thanks i hate it