CSS in 100 Seconds

Поделиться
HTML-код
  • Опубликовано: 13 дек 2021
  • Cascading Style Sheets or CSS is the language that makes HTML websites look pretty. Learn how concepts like cascade, specificity, inheritance, and the box model influence the appearance of a webpage fireship.io/tags/css/
    #css #webdev #100SecondsOfCode
    The sequel to HTML in 100 Seconds • HTML in 100 Seconds
    🔗 Resources
    CSS Docs developer.mozilla.org/en-US/d...
    Flexbox in 100 Seconds • CSS Flexbox in 100 Sec...
    Grid Layout in 100 Seconds • CSS Grid in 100 Seconds
    CSS Animation codepen.io/ainalem/pen/oNxXRgW
    🔥 Get More Content - Upgrade to PRO
    Upgrade to Fireship PRO at fireship.io/pro
    Use code lORhwXd2 for 25% off your first payment.
    🎨 My Editor Settings
    - Atom One Dark
    - vscode-icons
    - Fira Code Font
    🔖 Topics Covered
    - What is CSS?
    - How does CSS cascade?
    - What is specificity in CSS?
    - CSS Box Model explained
    - CSS for absolute beginners
    - What is CSS used for?
    - When was CSS3 created?
    - Will there be a CSS4?
  • НаукаНаука

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

  • @maqsud4521
    @maqsud4521 2 года назад +3386

    HTML is a noun, CSS is an adjective and javascript is a verb.

    • @SahilP2648
      @SahilP2648 2 года назад +271

      Speaking the language of the gods

    • @abhiramam5752
      @abhiramam5752 2 года назад +138

      He is out of line but he got a point

    • @monika.alt197
      @monika.alt197 2 года назад +14

      Yes

    • @henior
      @henior 2 года назад +34

      no, css is an adjective

    • @gimp3695
      @gimp3695 2 года назад +9

      I like this thought

  • @tejasn3835
    @tejasn3835 2 года назад +193

    shout out to the dedication in the "like and subscribe" at the end 2:15
    you'll always be the best

  • @robinmartijn9041
    @robinmartijn9041 2 года назад +73

    He centered a div without googling?
    HE'S A WITCH!

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

      This is the best comment in recent memory 🥲

  • @UselessDuckCompany
    @UselessDuckCompany 2 года назад +1304

    To me, CSS is the most frustrating part of web development. In programming the same code should run the same no matter the user, with CSS the exact same CSS produces different results depending on the browser. It's not fair. It's getting better but it's still annoying. Plus at my day job we still support IE11.

    • @trafnar
      @trafnar 2 года назад +182

      Back in my day, we had to support ie6. Uphill. Both ways.

    • @UselessDuckCompany
      @UselessDuckCompany 2 года назад +82

      @@trafnar Dude same. I was working at a major pharma company in 2012 (IE6 end of life was 2006!) and we had to support it. Plus they were still on Lotus Notes!

    • @c0smo709
      @c0smo709 2 года назад +51

      >css
      >programming
      >code
      wheeze

    • @chepossofare
      @chepossofare 2 года назад +59

      Well, have fun compiling a C++ project, mate.

    • @chepossofare
      @chepossofare 2 года назад +13

      @@UselessDuckCompany omg lotus notes is my personal Vietnam

  • @theatypicaldeveloper
    @theatypicaldeveloper 2 года назад +481

    🔥
    Great work as usual! Lots of ppl are using styled components now, it would be great to see one about JSS too!

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

      Currently working with jss, and it's very useful

    • @robertbrown1338
      @robertbrown1338 2 года назад +5

      Just when you thought people had fucked up just about everything with JavaScript they find something mostly untouched and beautiful to fuck up..
      Can anyone explain 'why?' - what can JSS actually do better than modern css or the compilers (scss sass less etc)
      How can this be any better than just having scoped styling at the component level (eg how React, Vue etc already work)

    • @lanye2708
      @lanye2708 2 года назад +8

      @@robertbrown1338 great question, I am yet to figure that out myself
      let CSS make things pretty, not JS, JS should never touch CSS. the closest it should come to is modifying attributes to influence the CSS being applied, but never anything more

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

      I'd add, that JS should not even modify the style attribute, but simply assign classes, IDs and modify the DOM to introduce new elements.
      The thing, that JS used to be better at, was animation. I don't know whether this already changed, but I could see JS being better at it, as it often needs to be responsive. Other than that: CSS for appearance, JS for logic and interactions, that cannot be done using CSS alone.

    • @peaklander1
      @peaklander1 2 года назад +2

      ​@@robertbrown1338 You guys do realize that JSS just compiles to CSS, right? It's just a way to write CSS inside a JS file, so you don't need to have separate files for logic and styling, making it easier to organize your code. How is that fucking up CSS with JavaScript?

  • @SimplyFizz
    @SimplyFizz 2 года назад +317

    I've wanted to see one about css for a while, as someone that is starting to do web dev, thanks :)

    • @esquilo_atomico
      @esquilo_atomico 2 года назад +6

      good luck in your journey :)

    • @thecanmanification
      @thecanmanification 2 года назад +2

      As a fellow beginner I think this is a very good primer

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

      When I started I had a lot of trouble with CSS. However, once you understand the "box model", it starts to click. Understand how that works and then learn flexbox + grid. With those tools alone, you can create most of what you want.

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

      @@esquilo_atomico nice profile picture :)

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

      I prefer tailwindcss over vanilla CSS as it has prebuit styles and @apply which allows you to create a class that takes the CSS from the class and merges it

  • @deady42
    @deady42 Год назад +21

    Wait this isn't Counter Strike Source.

  • @JohnSmith-xh6zx
    @JohnSmith-xh6zx 2 года назад +432

    The humor is incredible....
    An inclusion of centering a div using flex.
    A horribly styled like and subscribe at the end.
    Good stuff.

    • @Phatrikko
      @Phatrikko 2 года назад +26

      Hey no shame in centering a div with flex!

    • @user10476
      @user10476 2 года назад +16

      @@Phatrikko That is actually considered the best way today. Or one of the best, at least.

    • @VictorRibeiroJV
      @VictorRibeiroJV 2 года назад +4

      @@user10476 Yeah, "display: flex" and "align-items: center" is your way to go.

  • @kevybost
    @kevybost 2 года назад +164

    I'm sending this to everyone I know with a "This is what a REAL programming language looks like".
    (seriously though, good job on this and everything else you put out)

  • @yeaitsme6834
    @yeaitsme6834 2 года назад +47

    Loving these beginner videos. Sharing this with 100+ of my students!

  • @jacobhassel5860
    @jacobhassel5860 2 года назад +42

    Great vid as always. I’m a huge fan of these 100 seconds vids. I share these with my team all the time and they’ve massively helped us grow. Web dev is a huge ecosystem and your bite sized vids are a great way to navigate it. I’ve been a fan for a while and as this comment you’re at 990k subs. Can’t wait to see you get 1 mil subs. You’re doing big things for the web dev community.

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

      Just got to 1M in just 4 days. Damn.

  • @alexwilkinsgames
    @alexwilkinsgames 2 года назад +6

    I laughed at your subtle "like and subscribe" error with the text coming out of the box.

  • @desidev69
    @desidev69 2 года назад +6

    2:14 don't worry you can use "overflow" property to fix that

  • @Iceehockey21
    @Iceehockey21 2 года назад +13

    These videos are impeccable. When learning to code, you often don't get the high level explanation that these deliver. It's ironic how in forcing to pare it down to 100 seconds, it can almost be more effective than 10 separate videos which get too far into the weeds.

  • @thessianheart9816
    @thessianheart9816 Год назад +3

    Fireship is really a godsend. Sometimes you need a basic description of different kinds of technologies. It really clears the confusion and you know what exactly you need to learn next.

  • @heheboi9415
    @heheboi9415 2 года назад +10

    Loved it! I really wanted to see this one up here and you did the job :) Thank you so much 😃

  • @dreamisover9813
    @dreamisover9813 2 года назад +9

    Outstanding visualization of the concepts, that seemed pretty concise for the short amount of time. Awesome

  • @cli23
    @cli23 2 года назад +7

    Been a web dev for over 10 years and been doing CSS the whole time. That being said - I still found this interesting and useful. Amazing stuff!

  • @wlockuz4467
    @wlockuz4467 2 года назад +8

    They're not releasing CSS4 because the CSS4 spec has a requirement "One fixed way to center a div" and they still can't figure out what to settle on.

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

    so clean and perfect video,
    I was enjoying the presentation/video rather than the actual CSS topic,
    Hats off to fireship!!!

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

    Your RUclips account is just to valuable for all developers. You are not only making videos to every topic but also making very good vides with good visual graphics.

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

    I've worked with CSS for 5 years now and this is the best intro anyone could get to CSS that I've seen thus far.

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

    What surprises me is how you managed to mention all the important details about CSS that everyone must be aware of :D

  • @CHITUS
    @CHITUS 2 года назад +2

    These beginner videos are fantastic, and I'm sharing them with 100 of my students!

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

    The like and subscribe text overflowing the box is just incredible, great idea

  • @yitzchaksviridyuk932
    @yitzchaksviridyuk932 2 года назад +2

    I can't believe you didn't do this one yet. Glad you did!

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

    Haha, the overflowing text got me in the end 😂

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

    I'm dying at the overflow, you're a legend.

  • @h_maina
    @h_maina 2 года назад +2

    I feel like I'm getting addicted to this channel because I'm watching this even though I told myself that I already know what CSS is.

  • @MentorMode
    @MentorMode 2 года назад +2

    Really good content🔥. BTW. almost 1M. Good luck.

  • @jersoncarin1952
    @jersoncarin1952 2 года назад +7

    Your 100 seconds are so addicting, How do you make like this

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

    I love yours videos! Explained well, short and to the point.

  • @cosmq
    @cosmq 2 года назад +12

    My man, you are awsome 🤩
    Im still waiting for the c++ video, but until then i'll enjoy the rest 😀

    • @cobaltno51
      @cobaltno51 2 года назад +8

      just watch the java and the c video simultaneously

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

      Watch The Cherno dude

  • @user-ry4ip9ps9x
    @user-ry4ip9ps9x 2 года назад +2

    This video seemed especially good, the diagrams were great and easy to understand

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

    Wow I miss coding lol. Perfection as always Fireship. Your one of the few RUclips channels relating to code Im still subscribed to just cuz I respect you so much. Don’t get me wrong 😈, I still have saved videos of my most resourceful videos per genre/field/technology/breakthrough/tutorials/guides/etc. I’m just so proud to say I’m still subscribed to you 😁. Yhosh! 💪

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

    AMAZING VIDEO!!!! I would love to see a more in depth one about this topic

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

    This was beautifully simple and this is my sign. Thank you.

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

    2:06 I'm literally about to work on a zoom transition like this for my next project. Seriously man, you are a freaking god. You manage to CRAM all the BEST info into an extremely high fidelity youtube video. Insane. Very. Nice. Work. 👍👍👍👍👍👍

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

    Oh cool! Thanks for wrapping all the scattered pieces I’m learning into a nice little digestible package.

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

    This was awesome, thanks for the share. Great work!

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

    i never watch videos with speed lower than the normal speed, but i think now the time has come, just to admire this masterpiece.

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

    Assembly in 100 Seconds!
    I'm waiting :D

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

    Love the broken box at the end

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

    One of the best beginner videos I've seen.

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

    Whatever the art for making these videos is called... you sir, have mastered it!

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

    Congrats on 1mil jeff!!!

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

    The end screen was all we needed :)

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

    I wasted thousands of dollars in college and learned nothing compared to what i learned here in this channel for free. You guys are amazing . You people deserve a noble prize for what you are doing here.

  • @facundocorradini
    @facundocorradini 2 года назад +7

    Awesome video! Funny enough, the move into modularity happened after CSS 2... technically there was never a CSS 3, even if the vast majority of people would refer to it as the current version :s

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

    Loved the overflow at the end lol

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

    Every fireship video in 100 seconds is longer than 100 seconds

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

    Congrats on 1 million subs dude
    Well deserved!

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

    Congrats on 1 mil subs

  • @Youtube_user09.s
    @Youtube_user09.s 5 месяцев назад +1

    Amazing Video , Keep going !!👍👍

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

    Love the CSS Modules logo at the end 😉🌹

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

    Excellent! I replayed sections several times...

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

    Your content is awesome. I just purchased the pro membership

  • @schedarian-
    @schedarian- 2 года назад +1

    Can't wait for Crystal in 100 seconds!

  • @santisoza1364
    @santisoza1364 2 года назад +2

    These videos are so addicting

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

    How can you pack so much info in such a short amount of time? Genius!

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

    I was looking for CSS tutorials and then only you dropped this

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

    Some of the visuals people have made using raw css is astounding.

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

    I WAS WAITING FOR THIS!

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

    amazing! thank you!!!

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

    Great work!

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

    1:54 if only it was that easy to create such a beautiful button

  • @PreciousGaming15902580rAf
    @PreciousGaming15902580rAf 2 года назад +20

    I actually am learning CSS right now and this helped a lot. Thanks :)

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

      Have you succeeded of leaning Cascading Strong Storm?

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

    Lovely video, thanks!

  • @lizunchx6049
    @lizunchx6049 2 года назад +4

    This channel makes me feel like I've overpaid for my college education in terms of both money and time

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

    I really dig this format of your videos man, please do Kafka in 100 secondes thanks !

  • @user-bp5xc9bv4m
    @user-bp5xc9bv4m 2 года назад

    Quality of this video was amazing for some reason ✌️

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

    Thank you very cool. Now I just got to figure out how to make stuff look pretty

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

    I like the fact that no one notices theses are actually 140 seconds! But great video as always!

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

    the like && subscribe segment had me hollering.

  • @theencryptedpartition4633
    @theencryptedpartition4633 11 месяцев назад +2

    Taking a CSS course while thinking that CSS is a Computer Science Student, so Kind of taking CS course 😂

  • @porrasm
    @porrasm 2 года назад +4

    Have you considered covering quantum programming in 100 seconds? It's a very intersting subject and completely different from normal programming.

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

    I know CSS for 10 years now, but I will never miss this video

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

    ive been waiting for this one.

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

    Glad I learned much of this in the early 90s. 😊

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

    Really loved it 🥰

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

    The generated captions are just hilarious 😄

  • @PunmasterSTP
    @PunmasterSTP 2 месяца назад

    Fireship? More like "Fantastic; this intro was lit!" 👍🔥

  • @ErFyAgario
    @ErFyAgario 2 года назад +2

    Now I know how to center a div.

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

    Yo it’s here thank you fireship

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

    Developer: I want this to be centered and blue with rounded corners
    CSS: Best I can do is circle, to the right and green

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

    congrats on 1 million!

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

    i was waiting for this

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

    At 0:16 you use the color property to change the color of the box when it should really be background-color

  • @bonczy_vr
    @bonczy_vr 7 месяцев назад +6

    I came here for counter strike source

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

    got my exams today, still enjoying myself cuz of your videos 😎😎🙌🏻

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

    SOLID design principles in 100 seconds

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

    Perfect timing!

  • @arcanaido6415
    @arcanaido6415 9 месяцев назад

    loved the ending where the subscrive mensage went outside of the box borders hhahah

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

    Finally I now know how to center a div

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

    Assembly Language in 100 Seconds would be 🤩 AWESOME 🤩

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

    Congratulations on reaching 1 MILLION Subscribers 🎉🎉

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

    We already knew that Jeff is a master in making things look simpler.
    Now let's note the latest tip:
    Cover bf before css.

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

    Not the video we all wanted, but the video we deserved.

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

    Time to do one on @container queries!

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

    Thanks appreciate you ❤