These CSS PRO Tips & Tricks Will Blow Your Mind!

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 พ.ค. 2024
  • 10 MINDBLOWING CSS Tips and Tricks that solve typical JavaScript problems with CSS ONLY. You will learn elegant solutions for everyday css problems and productive shorthands for responsive web design, How to implement modern design trends such as glassmorphism or new morphism smooth scroll snapping in swiper, how to use the :checked pseudo-class to create eventListener in CSS only. How to fix a common :focus pseudo-class problem to create a dropdown menu in css without the need of javascript. And much much more.
    BEGINNERS START HERE:
    👌 Learn HTML5 in one afternoon with our beginner course: www.udemy.com/course/coding2g...
    Checkout our website for more:
    👉 www.coding2go.com
    Host Your Own Website With Hostinger:
    👉 www.hostinger.com/coding2go
    ✌️ And get a huge discount with our code: CODING2GO
    #cssonly #csstricks #webdevelopment
    RELATED CONCEPTS YOU SHOULD LEARN:
    How to code a Navbar: • Create a RESPONSIVE NA...
    CSS Flexbox: • CSS Flexbox Tutorial f...
    JavaScript: • How to learn JavaScrip...
    Todo App Project: • Build & Deploy a TODO ...
    SOURCES:
    developer.mozilla.org/en-US/d...
    developer.mozilla.org/en-US/d...
    developer.mozilla.org/en-US/d...
    developer.mozilla.org/en-US/d...
    developer.mozilla.org/en-US/d...
    developer.mozilla.org/en-US/d...
    developer.mozilla.org/en-US/d...
    developer.mozilla.org/en-US/d...
    developer.mozilla.org/en-US/d...
    developer.mozilla.org/en-US/d...
    MUSIC & LICENCE
    Track: "Little Things"
    Music provided by Slip.stream
    Free Download/Stream: get.slip.stream/QmMj1I
    Track: "Scared Of The Glizzy"
    Music provided by Slip.stream
    Free Download/Stream: get.slip.stream/xPJ3rV
    Track: "Take Off", NEFFEX
    Music provided by Slip.stream
    Free Download/Stream: get.slip.stream/GcQeOy
    Listen on Spotify: go-stream.link/sp-neffex
    Track: "Tropical Nights", Nico Sainato Tracks
    Music provided by Slip.stream
    Free Download/Stream: get.slip.stream/Hk8DVL
    Listen on Spotify: go-stream.link/sp-nico-sainat...
    CONCEPTS YOU WILL LEARN:
    ✔ HTML, CSS ONLY
    ✔ CSS Solution without JavaScript
    ✔ Responsive Web Design
    ✔ Smooth Scrolling in Swiper (scroll snapping)
    ✔ Modern UI Design Trends such as Glassmorphisn and New Morphism
    ✔ CSS Shortcuts and effective code solutions
    ✔ How do checkboxes and labels work (:checked pseudo-class)
    ✔ How does the :focus pseudo-class work in css
    ✔ How does the :focus-within pseudo-class work in css
    ✔ How to create a dropdown menu in css only without javascript
    ✔ How to use min() max() and clamp() functions
    ✔ How to resize elements in css
    I hope you learned something new ;)

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

  • @coding2go
    @coding2go  2 หลายเดือนก่อน +59

    Hope you guys learned something new. Feel free to share your own css tricks in the comments for others to see 😎
    Edit: I uploaded the source code for the tips on my website if you guys wanna check it out: www.coding2go.com

    • @MAALTECH
      @MAALTECH 11 วันที่ผ่านมา +1

      Subscribed immediately

    • @meew7571
      @meew7571 10 วันที่ผ่านมา +1

      Bro god will blessed you for this tutorial. you just shared some cool tricks and explain it perfectly. hope you will share more tricks with great explanation like this.

    • @DrClappinCh33ks
      @DrClappinCh33ks 8 วันที่ผ่านมา

      Very good video just subscribed. Please keep the vids coming

    • @ashwinbarnwal1281
      @ashwinbarnwal1281 3 วันที่ผ่านมา

      One trick I knew so far : to follow css-tricks.com

  • @sandarushashinda6912
    @sandarushashinda6912 11 วันที่ผ่านมา +169

    bro got straight in to the point, didn't waste a single sec of my life, worth it

    • @James-the-elder
      @James-the-elder 8 วันที่ผ่านมา

      Thought i was in like the 12th second or something 😂

  • @darknezx9542
    @darknezx9542 8 วันที่ผ่านมา +17

    Incredible content, no BS, just tip after tip

  • @militarykaliber-rp7ss
    @militarykaliber-rp7ss วันที่ผ่านมา

    I love how straight to the point you are, no lengthy intro no bullshit, i just love it , you got a new sub

  • @manfromexistence
    @manfromexistence 15 วันที่ผ่านมา +26

    Bro, I watched so many CSS tricks but this trick you gave is so awesome. Thanks bro, I didn't realize until now that ':not' and ':has' CSS new selectors can be so useful and CSS scroll trick is also so awesome too. Thanks a lot!!!

  • @madhavanair3744
    @madhavanair3744 2 หลายเดือนก่อน +19

    That glass effect was super awesome 🥶

  • @tiendatniit
    @tiendatniit 9 วันที่ผ่านมา

    Your video is really awesome! Eight years ago, I was completely focused on backend development. Only now am I realizing how much CSS has changed. It's crazy!

  • @Baccardi151
    @Baccardi151 11 วันที่ผ่านมา +7

    Learned alot, & you didn't waste any time, much appreciated

  • @darigames2859
    @darigames2859 8 วันที่ผ่านมา

    This is genuinely one of the best tips and tricks videos I’ve seen

  • @amphibia95
    @amphibia95 12 วันที่ผ่านมา +3

    Nice one! First time seeing many of these.

  • @cwm161
    @cwm161 2 หลายเดือนก่อน +3

    These are very helpful thanks for sharing ❤

  • @PhucTran-zj5is
    @PhucTran-zj5is 15 วันที่ผ่านมา +2

    U gimme almost trick I don't know and still find it till I watched this video. Thanks
    ❤❤❤

  • @Digital_1mpulse
    @Digital_1mpulse 7 วันที่ผ่านมา +1

    That background-filter is awesome. Always wondered how that worked. Clamp is a nice to know as well! Learned something new. Appreciate the video!

    • @coding2go
      @coding2go  7 วันที่ผ่านมา

      Thank you

  • @1230124
    @1230124 3 วันที่ผ่านมา

    you make it very simple and clear~! thanks a lot!!

  • @RobertWildling
    @RobertWildling 2 วันที่ผ่านมา

    Love the scroll-snap! Thank you vey much! Also the straight-to-the-point character of your tutes is highly appreciated! Subscribed!

    • @coding2go
      @coding2go  2 วันที่ผ่านมา

      Thank you! I appreciate the kind words. Welcome to the channel 👋

  • @shreyashamrutkar3225
    @shreyashamrutkar3225 7 ชั่วโมงที่ผ่านมา

    Best video. Thanks for sharing this useful content.

  • @felixurbano1199
    @felixurbano1199 12 วันที่ผ่านมา +1

    Great video! Thanks for share

  • @blindsidedgames
    @blindsidedgames 2 วันที่ผ่านมา

    What an absolutely fantastic video thank you

  • @leoyunanda
    @leoyunanda วันที่ผ่านมา

    Very helpful, thank you bro 😍

  • @Moamal-Alaa
    @Moamal-Alaa วันที่ผ่านมา +1

    Great video bro, Just one thing you haven't mentioned in the video, If you rely on checkbox inputs to toggle the menu you have to make sure it won't ruin the accessibility, and as you mentioned users won't notice but the browsers, so becareful when you use checkboxes for other purposes.

  • @naweendanushka3358
    @naweendanushka3358 11 วันที่ผ่านมา +1

    Great video, I have only known about :hover pseudo class

  • @TrendingShorts-5G
    @TrendingShorts-5G 13 วันที่ผ่านมา +5

    please make more video on css and one thing you do different is first you visualize the problem and then provide solution this is really amazing and helpful for beginners

    • @coding2go
      @coding2go  12 วันที่ผ่านมา

      Thanks, will do.

  • @alirezamousavi3583
    @alirezamousavi3583 7 วันที่ผ่านมา

    It was amazing... Thank you so much man

  • @AA100HP
    @AA100HP 9 วันที่ผ่านมา

    Love these simple yet so useful videos! Keep up the good work! 🎉

    • @coding2go
      @coding2go  9 วันที่ผ่านมา

      Thank you! Will do!

  • @rongitmukherjee
    @rongitmukherjee 9 วันที่ผ่านมา +2

    That was no bullshit straight to the point, informative, clean and helpful. New subscriber here.

    • @coding2go
      @coding2go  9 วันที่ผ่านมา

      Thanks, glad you like it! Welcome to the channel ✌️

  • @marufahmad4385
    @marufahmad4385 8 วันที่ผ่านมา

    Great quick tutorial.

  • @josetovarrodriguez3525
    @josetovarrodriguez3525 10 วันที่ผ่านมา

    That was cool tricks, thanks dude blessings for you

  • @khorium9626
    @khorium9626 8 วันที่ผ่านมา

    That was really helpfull, thank you.

  • @cackscrew
    @cackscrew 12 วันที่ผ่านมา

    Nice vid, actually didn’t know most of these

  • @bakasenpaidesu
    @bakasenpaidesu 12 วันที่ผ่านมา +4

    Do you have CSS beginner to advanced course? If no then you should definitely make one I will surely buy it.

    • @coding2go
      @coding2go  12 วันที่ผ่านมา +3

      We are currently working on a CSS course. The plan is to publish the course next month. We will let you know when the course is available.

    • @bakasenpaidesu
      @bakasenpaidesu 4 วันที่ผ่านมา +1

      @@coding2go ok, roger sensei !!!

  • @fatihece3359
    @fatihece3359 5 วันที่ผ่านมา

    Many many thanks sir, great tips and content.

  • @freefireshorts4712
    @freefireshorts4712 14 วันที่ผ่านมา

    Thanks for this amazing video

  • @Mr.Hitman.47
    @Mr.Hitman.47 8 วันที่ผ่านมา

    Thank you, today I learned something new 🥂

  • @HarshBhardwaj-mait27
    @HarshBhardwaj-mait27 5 วันที่ผ่านมา

    Great content... Make more

  • @1coderspemula
    @1coderspemula 13 วันที่ผ่านมา

    Thanks for sharing❤

  • @SebastianPerezDev
    @SebastianPerezDev 12 วันที่ผ่านมา +6

    Gradient trick for text is awesome, dude, thank you

    • @coding2go
      @coding2go  12 วันที่ผ่านมา

      Glad you like it!

  • @yashkhawale
    @yashkhawale 2 หลายเดือนก่อน +2

    Really helpful video. Like your simple way of teaching.
    Could you please create a multi page website building video using html, CSS and js?

  • @RapidFlix
    @RapidFlix 7 วันที่ผ่านมา

    Worth every second

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

    Thank for the tricks

  • @devbaviskar1107
    @devbaviskar1107 6 วันที่ผ่านมา

    Thanks today I learn something new brother ❤🎉

  • @ahdafirlybarori6684
    @ahdafirlybarori6684 9 วันที่ผ่านมา

    awesome, thanx brother

  • @ahmedghallab5342
    @ahmedghallab5342 10 วันที่ผ่านมา

    شكرا ❤ thanks it was amazing

  • @Mustavii
    @Mustavii 9 วันที่ผ่านมา

    really this tutorial was mind blowing 😊

  • @blackmmo3602
    @blackmmo3602 15 วันที่ผ่านมา +1

    More Videos Like this please

  • @HONKAI_WORLD_OF_JOY
    @HONKAI_WORLD_OF_JOY 14 วันที่ผ่านมา

    Thank you dear:)

  • @sajjadahmad6436
    @sajjadahmad6436 10 วันที่ผ่านมา

    Thanks it was amazing

  • @truvak
    @truvak 10 วันที่ผ่านมา

    Thanks!

  • @powerdon3606
    @powerdon3606 14 วันที่ผ่านมา

    nice video, thanks bro

  • @kallymashigo6532
    @kallymashigo6532 2 หลายเดือนก่อน +3

    🎉🎉😮 am speechless

  • @biovawan
    @biovawan 13 วันที่ผ่านมา

    fricking amazing! ❤‍🔥❤‍🔥❤‍🔥

  • @jawadwakeel9036
    @jawadwakeel9036 11 วันที่ผ่านมา

    Thank you❤❤

  • @merictunc
    @merictunc 16 วันที่ผ่านมา

    Thanks

  • @denhamk
    @denhamk 9 วันที่ผ่านมา

    Wow. That text gradient trick was 🔥!! Next can you show me how you blur the background when I hover over my megamenu 🤪 (like apple’s website?) 😉

  • @serhiilytvyn8753
    @serhiilytvyn8753 10 วันที่ผ่านมา

    Cool features

  • @top10youtubevideos64
    @top10youtubevideos64 4 วันที่ผ่านมา

    such a great video. subscribed

    • @coding2go
      @coding2go  3 วันที่ผ่านมา

      Thanks 💙

  • @Itachii-lord
    @Itachii-lord 14 วันที่ผ่านมา

    Great content

  • @danushadhaamarasekera7215
    @danushadhaamarasekera7215 12 วันที่ผ่านมา

    Thanks brother

  • @mr.syconium
    @mr.syconium 12 วันที่ผ่านมา

    I love this content❤

  • @hw-moviespoint3109
    @hw-moviespoint3109 10 วันที่ผ่านมา

    Great.❤
    Make video on sticky thead or give alternative way to sticky.
    Position sticky don't apply if parents are using overflow.

  • @user-vs9ey3bd4t
    @user-vs9ey3bd4t 10 วันที่ผ่านมา

    subscribed inmediatly!!

    • @coding2go
      @coding2go  10 วันที่ผ่านมา

      Thanks, welcome to the channel 💙

  • @2pc2297
    @2pc2297 10 วันที่ผ่านมา

    I was shocked💥😮

  • @Htbaa
    @Htbaa 11 ชั่วโมงที่ผ่านมา

    For accessibility concerns please don't misuse a checkbox for that purpose. Other than that some awesome tricks in here, especially the snapping slider.

  • @AbhishekYadav-jp6je
    @AbhishekYadav-jp6je 11 วันที่ผ่านมา

    Great bro

  • @webVladimirDev
    @webVladimirDev 9 วันที่ผ่านมา

    Great content, i learned something so you have my subscribe

    • @coding2go
      @coding2go  9 วันที่ผ่านมา

      Awesome, thank you! Welcome to the channel 👋

  • @UwU-dx5hu
    @UwU-dx5hu 10 วันที่ผ่านมา

    Cool😮

  • @Trendi_Vibes
    @Trendi_Vibes 3 วันที่ผ่านมา

    Your content ✨️, that's why I subscribed to you 🎉,how many years taken to learn those techniques 😅

  • @chesterxp508
    @chesterxp508 ชั่วโมงที่ผ่านมา

    GoodJob!

  • @erickmoya1401
    @erickmoya1401 12 วันที่ผ่านมา

    I just found your content. Amazing video.

    • @coding2go
      @coding2go  12 วันที่ผ่านมา

      Thanks and welcome ;)

  • @DevenSitapara
    @DevenSitapara 9 วันที่ผ่านมา

    Loss of devs appreciate this kind of teaching approach

  • @sk.naimuddin2285
    @sk.naimuddin2285 12 วันที่ผ่านมา

    Great work mate. Can u also make a video on css viewport function? For example I have an animation and it will only animate when the user reaches that part. I tried and failed.

  • @Dhanjeerider
    @Dhanjeerider 4 วันที่ผ่านมา

    Cool 🆒😎

  • @LeFede
    @LeFede 12 วันที่ผ่านมา

    pure gold

  • @JakubSK
    @JakubSK 11 ชั่วโมงที่ผ่านมา

    I knew all those tips, up to the last.

  • @Ritesh-lx9wp
    @Ritesh-lx9wp 3 วันที่ผ่านมา

    linear gradient not working on chrome and edge for body colour

  • @raghuram3308
    @raghuram3308 7 วันที่ผ่านมา

    Can we use the tricks for flutter code

  • @gayrice3160
    @gayrice3160 8 ชั่วโมงที่ผ่านมา

    say i have 2 elements or more shown in a slider, and the wrapper is the larger than two or more elements, is the snap function still usable?

    • @coding2go
      @coding2go  4 ชั่วโมงที่ผ่านมา

      Yes it will work for that too. In that case I would recommend setting scroll-snap-align: start; on the cards instead of center to have make it snap on the left side.

  • @francunhad1501
    @francunhad1501 10 วันที่ผ่านมา

    DAAAAAAAAAAMN

  • @MediaVille
    @MediaVille 5 วันที่ผ่านมา

    Css is now nestable so u can create a button style and in the button add the svg style.

  • @Dj7wiLLY
    @Dj7wiLLY 7 วันที่ผ่านมา

    Subscriiibed !!!!!

    • @coding2go
      @coding2go  7 วันที่ผ่านมา

      Thanks! Welcome to the channel 👋

  • @mychoppaeat
    @mychoppaeat 11 วันที่ผ่านมา

    The pseudo-classes (has, not etc) arent fully supported on all browsers so I would refer from using them in professional projects.

    • @dannyrus1979
      @dannyrus1979 10 วันที่ผ่านมา

      what are you talking about? :not was supported since the birth of firefox... and :has is supported in all major browsers (firefox was last to add it, at the end of last year)

  • @MyDigitalHub
    @MyDigitalHub 4 วันที่ผ่านมา

    This guy need some good tip

  • @Caldaron
    @Caldaron 7 วันที่ผ่านมา

    can you please get rid of blind mode? it's 2 am and i'm getting constantly flashbanged

  • @ErnestOak
    @ErnestOak 6 วันที่ผ่านมา +1

    Damn I'm getting old, fact that I don't know about new css

  • @aabidfaiyaz
    @aabidfaiyaz 9 วันที่ผ่านมา

    Bro, I’m looking for a tool that uses CCS, with able to visual view what you’re doing in the front end, while coding it…

    • @coding2go
      @coding2go  9 วันที่ผ่านมา

      What you need is a Live Server. Use Visual Studio Code as your code editor and go to the "Extensions" window in the sidebar to install the "Live Server" extension. Now when you have your project folder opened with vs code you can right click any HTML file to "Open with Live Server". That will open the website in the browser. Now whenever you change something in your code and save the file using CTRL + S, the browser will refresh automatically. You don't have to reload the page manually anymore. It works for HTML, CSS ans JS files.

  • @sergeyblack6735
    @sergeyblack6735 3 วันที่ผ่านมา

    neUmorphism would be correct

  • @zivodev
    @zivodev 10 วันที่ผ่านมา +1

    POV me who is still learning HTML and watching this video 😂

    • @BlockPotatoYT
      @BlockPotatoYT 5 วันที่ผ่านมา

      Koi baat nahi, dhire dhire aage badhte raho :)

    • @zivodev
      @zivodev 5 วันที่ผ่านมา

      @@BlockPotatoYT I didn’t understand nothing

  • @n83557
    @n83557 15 วันที่ผ่านมา +1

    This video is greater than Harry Potter. ❤

  • @3litepker
    @3litepker 14 วันที่ผ่านมา +1

    Are these all supported in all browsers?

    • @coding2go
      @coding2go  14 วันที่ผ่านมา +1

      Browser support is a very good question. Its always different but almost every property shown in this video has around 96-98% global Browser support on caniuse.com which is very good. Only the resize property has 82%, but it will work in most browsers.

    • @amphibia95
      @amphibia95 12 วันที่ผ่านมา +2

      I believe they're all unavailable in the North Korean Red Star Browser and the Opera Mini Uganda Edition Pro Plus Browser. Such a shame, these are very cool css features, but better safe than sorry right?? 😒 Who cares bro. Imo as long as it's supported by chrome and firefox they should be considered ok to use, especially now that IE is dead too.

  • @8YEight
    @8YEight 8 วันที่ผ่านมา

    Using form elements like checkboxes to toggle menus or create drop-downs is a bad practice for accessibility. Yes, it’s achievable through CSS, but it’s definitely not accessible. You should use HTML elements where they are intended for.

    • @wesleysandifer6157
      @wesleysandifer6157 4 วันที่ผ่านมา

      Either way, you need javascript for consistency. Just another way of looking at it. I think this trick can be used on other elements.

  • @AndrewDevUA
    @AndrewDevUA 2 วันที่ผ่านมา

    wow very useful!

  • @loantrinhcutexinkdep
    @loantrinhcutexinkdep 12 วันที่ผ่านมา

    I'm amazed with the video so amazing ❤❤❤

  • @burkybang
    @burkybang 4 วันที่ผ่านมา

    It’s “neumorphism” not “new morphism”

    • @coding2go
      @coding2go  4 วันที่ผ่านมา +1

      You are right, I made a translation error. It happened because "neu" actually means "new", but apparently it doesn't need to be translated.

  • @elektro9te
    @elektro9te 11 วันที่ผ่านมา +1

    Came here to learn new words for my shiny ai prompt. No way I'm typing all these on my own.

  • @paz1359
    @paz1359 14 วันที่ผ่านมา

    Thanks!

    • @coding2go
      @coding2go  14 วันที่ผ่านมา

      Thank you too! Welcome to the channel 💙