10 CSS PRO Tips and Tricks you NEED to know

Поділитися
Вставка
  • Опубліковано 21 лис 2024

КОМЕНТАРІ • 117

  • @DamirSecki
    @DamirSecki 27 днів тому +27

    one of the best videos I've seen in long time.
    1. Great tips for more advanced knowledge / and perfect amount
    2. Good examples and presentation
    3. Shout-outs to the "original creators"
    4. Pace
    5. Decent voice over and no annoying music

  • @PicSta
    @PicSta Місяць тому +40

    I am following Lun Dev for a long time by now, and he has some great, highly valuable content. What you both are sharing is the great content and information, strict to the point. Not much, blah blah.

  • @parthjasani7
    @parthjasani7 Місяць тому +10

    If you want to add transition to height : auto; simply add "interpolate-size: allow-keywords;" property

    • @MaximKursakov
      @MaximKursakov Місяць тому +1

      If the entire user base uses only chrome, sure.

    • @Tarabass
      @Tarabass 29 днів тому +1

      Chrome, the new IE

  • @pierwszywolnynick
    @pierwszywolnynick Місяць тому +13

    this is the perfect pace of teaching, no time wasted, perfect examples, quality content. I actually learned something new about css and that's rare in youtube videos

  • @mattwood8659
    @mattwood8659 Місяць тому +6

    The problem with the columns for masonry is that it's gonna read down instead of across. Which would be be problematic for dynamic content if you're using an Ajax load more for example. How ever a display grid masonry is in the works.
    Also with the accordion it's best to stick with the details summary tag for acessability purposes. If yiu go the JavaScript route you're also gonna have to do your aria exampled states and your tab keyboard support.

  • @dannny6019
    @dannny6019 Місяць тому +8

    The column property really helpful. Definitely gonna be using it

  • @TehGM
    @TehGM 26 днів тому

    I am no frontend dev. I am backend dev. But I run my personal projects, so I need to do frontend too sometimes.
    Because I am not a frontend dev, I am not great at making things look nice. This video should help - really good ones there, and easy to implement.

  • @ioannesbracciano4343
    @ioannesbracciano4343 Місяць тому +1

    I love you, the `columns` property is exactly what I was looking for for a project! Thank you!

  • @gaborkovacs5095
    @gaborkovacs5095 20 днів тому

    This is pure gold, thank you.

  • @radovankrizalkovic9084
    @radovankrizalkovic9084 24 дні тому +1

    You don't have to say "like and subscribe" when you drop a bomb like this. Thanks mate ❤

  • @yacinehmdn
    @yacinehmdn 27 днів тому

    2:53 position:absolute will place the element according to the page boundaries and not the viewport, it's rather the position:fixed that places it according to viewport

  •  21 день тому

    I use conic radiants to make light pie charts

  • @renekomane
    @renekomane Місяць тому

    This tips are great, thanks, I usually use the max-height property instead of height for dropdown purpose and works well..

  • @SergeyNeskhodovskiy
    @SergeyNeskhodovskiy Місяць тому +1

    You can have an expandable panel with an opening transition even without any javascript at all. Just use a hidden checkbox and .container:has(input:checked). Make the "summary" its label so that when it's clicked the invisible checkbox is checked and toggles the 1fr for the container as shown in the video.

    • @ErikBlomqvistSwe
      @ErikBlomqvistSwe Місяць тому

      Or just use the details and summary elements, as were shortly mentioned, and add your CSS to details[open] { … }

    • @SergeyNeskhodovskiy
      @SergeyNeskhodovskiy Місяць тому

      @@ErikBlomqvistSwe That was my first take but I tried and surprisingly those didn't work for me. Maybe I did something wrong, idk. It worked in general but the transition did not happen.

  • @Jaystube_js
    @Jaystube_js 13 днів тому

    I was suprised that you also watched lundev which i watch when you are explaining masonry layout my mind goes to his video and kudos for giving him credit i really appreciate it.🎉

  • @KellerG68
    @KellerG68 Місяць тому

    On tip 8 you talk about JS for adding some custom classes, please take care about the [open] attribute of the details/summary elements to not add unnecessary JS on the web

  • @jenstornell
    @jenstornell 26 днів тому +1

    I am a pro and I don't use that column trick. The images often get sorted in the wrong way. There will be a real masonry soon tho. They just need to implement visual tab order feature first, for screen readers.

  • @QwDragon
    @QwDragon Місяць тому +2

    03:29 It's absolutely different code for different cases.

  • @codeman99-dev
    @codeman99-dev Місяць тому +1

    7:11 Dude. Tip #9 is a game changer!

  • @SohaibHasan
    @SohaibHasan 26 днів тому

    Love the video, thank you. Learnt new things.

  • @hclyrics
    @hclyrics Місяць тому +21

    I'm about to get burned at the stake for this CSS witchcraft.

  • @sivasundarpt
    @sivasundarpt 29 днів тому

    Greatest informative teaching... Thanks for the valuable ideas..

  • @martinpenev6750
    @martinpenev6750 Місяць тому +2

    Only saw 2 videos by you and already subscribed. Great content!

    • @mrunphotography
      @mrunphotography Місяць тому

      I subscribed on the first😅his content is super cool

  • @RohitKumar-my4gq
    @RohitKumar-my4gq Місяць тому +1

    One question is that all topic you discuss here are they covered in udemy course?

  • @TheDorac1
    @TheDorac1 23 дні тому

    I consider myself an expert as CSS. This vid made me feel outdated and back to beginner 😲

  • @RoldanMengote
    @RoldanMengote 16 днів тому

    Thank you for this video 😊

  • @gusalvestavo3721
    @gusalvestavo3721 Місяць тому

    Great content and straight to the point!! Thanks for teaching me something new

  • @micbln8967
    @micbln8967 Місяць тому

    the accordion transition problem you can solve much easier, use not height but max-heigth

  • @lenniii2011
    @lenniii2011 Місяць тому +1

    Hey which Visual Studio Code add-ons do you use?

  • @domidanger
    @domidanger Місяць тому

    I love your videos. It's amazing how much one can learn even after working as a web developer for years 😅

  • @benvindadossantos2092
    @benvindadossantos2092 Місяць тому +2

    I have learnt something very useful, thank you

  • @Arygua
    @Arygua Місяць тому

    I had actually thought about using a cobblestone design recently but was not sure how feasible it would be.
    I went with a simpler rotating marque but its cool that its actually really simple to do.

  • @lazy-hero.
    @lazy-hero. 3 дні тому

    Thanks buddy

  • @cjr2068
    @cjr2068 Місяць тому

    Wow this channel is becoming one of my favorites, amazing content and really good explanation

  • @mr.fabian8471
    @mr.fabian8471 Місяць тому

    Magic !!! Thank you so much!

  • @julienheng3880
    @julienheng3880 Місяць тому

    Your videos are amazing! Thank you very much!

  • @UplandBill
    @UplandBill Місяць тому

    I failed on Tip #1. Simple image viewer. I see the border when page refreshes, but then image expands past the border, thus hiding/covering it. Will keep trying.
    width: 1100px;
    height: auto;
    border-image: linear-gradient(to right, #0066ff, #ff32d6) 1 / 3px;
    After a good night's sleep, I got it. Needed to add padding.

  • @notme9801
    @notme9801 Місяць тому +1

    Can you show us your setup, i.e. how you have the browser immediately show results whenever you change your code?

    • @leroydennisaidoo7968
      @leroydennisaidoo7968 Місяць тому +1

      Set files to auto save

    • @notme9801
      @notme9801 Місяць тому

      @@leroydennisaidoo7968 and for auto refresh what does he use, webpack? 🤔

    • @notme9801
      @notme9801 Місяць тому

      And then what else, webpack? 🤔

  • @dev-grilado
    @dev-grilado 19 днів тому

    So the columns property must be used with caution, simple layouts doesn't have problem, but complexes can cause performance issues because of how the propertie column-count works, I'm 2 weeks trying to sove a problem in my work and the cause is the column-count

  • @kenechukwuwisdom8287
    @kenechukwuwisdom8287 Місяць тому

    Pls make a playlist on DOM manipulation

  • @rootcodinggood
    @rootcodinggood День тому

    yeah perfect video, i love this video

  • @ZeKiwiOfTheNorth
    @ZeKiwiOfTheNorth Місяць тому

    When i saw the thumbnail, i thought you brought me a timely solution to an issue I'm having, but it's not the case 😅
    I'm trying to have three horizontal text blocks across the top on desktop viewing, but have them align vertical when the window is made smaller/when viewing on mobile. Can anyone make any suggestions?
    Grid will swap to vertical if i specify the box size by pixels (okay, but I'd like 1, 2, or 3 images to fill up a given space), and trying out the columns has my boxes melding over one another when i change the window size

  •  27 днів тому

    Bro I really love css and I thought that I would not learn anything new but I must admit I was wrong!

  • @amphortas1
    @amphortas1 Місяць тому

    Thank you! This is valuable info!

  • @Turabbo
    @Turabbo Місяць тому

    The columns property stacks stuff, but it's like a newspaper; you read the content top to bottom before starting at the top again.
    Masonry has a reading order left-to-right, but each row dynamically squashes upward to fill in gaps.
    Using columns won't work if you want your latest content at the top of the page, for example. It also won't work with streaming in assets.
    I feel like you probably know that, but it's important to say, so you're not fooling people into thinking that masonry layouts natively exist, because they don't.

  • @fab1o978
    @fab1o978 Місяць тому

    Awesome! A lot of useful informations here, subscribed!

  • @Kr0n3kLe
    @Kr0n3kLe Місяць тому +1

    Nice video!

  • @gabrielv2340
    @gabrielv2340 Місяць тому +3

    In Tip #7. You can use the property: interpolate-size:
    allow-keywords; then when you Click on the element give it a height: auto;

    • @mattwood8659
      @mattwood8659 Місяць тому

      That's not fully supported yet

  • @_cannachris
    @_cannachris Місяць тому

    Amazing Tipps, Thanks Fabian

  • @ClubMedia
    @ClubMedia Місяць тому

    شكراَ لك

  • @KoenVerheyen
    @KoenVerheyen Місяць тому +3

    2:49 You mean "top right bottom left", not "top right left bottom"

  • @paIeville
    @paIeville Місяць тому

    thank you so much for making informative videos ♥️

  • @Abdullah_WordPress_Expert
    @Abdullah_WordPress_Expert Місяць тому

    great mashallah i leart from you so meny thing thanks alot

  • @filippotinnirello
    @filippotinnirello 21 день тому

    2:50 it's top right bottom left

  • @diowryyy7
    @diowryyy7 27 днів тому

    this is so nice

  • @kuber9459
    @kuber9459 Місяць тому +4

    border-radius wont take any effect if border-image is used !!

  • @oleksii-bryl
    @oleksii-bryl Місяць тому

    Amazing!

  • @DANJ93Mort
    @DANJ93Mort 22 дні тому

    Nice!

  • @moneyfr
    @moneyfr Місяць тому +1

    congratulation

  • @DontFollowZim
    @DontFollowZim 27 днів тому +1

    Your example with columns is naive. The thing about a proper masonry layout is that it's still read from left to right, then top to bottom. Your order fills a column from top to bottom, then left to right. This especially matters if you try to add more items in dynamically, then you can't just scroll down to see the new stuff.

    • @DontFollowZim
      @DontFollowZim 27 днів тому

      Also you said inset was shorthand for "top, right, left, and bottom", but that's the wrong order. It's "top, right, bottom, left".

  • @noisyintrovertzxc
    @noisyintrovertzxc Місяць тому +1

    Lun dev is fkin underrated I love his videos

  • @khaledMohamed-tp4wx
    @khaledMohamed-tp4wx Місяць тому +3

    Lun Dev you and Kevin, three channels for CSS i like and follow

  • @kryp_arnold
    @kryp_arnold Місяць тому

    Such a nice video, well done boss ❤

  • @nickolaizein7465
    @nickolaizein7465 Місяць тому

    Great again!

  • @shooterking168
    @shooterking168 Місяць тому +1

    CSS:Constant State of Suffering

  • @pixelharmonie-webdesign
    @pixelharmonie-webdesign Місяць тому

    Awesome! 👌🤩

  • @savan-kumar-sk
    @savan-kumar-sk Місяць тому

    Awesome 💯👌

  • @Anisulhoque-k5l
    @Anisulhoque-k5l Місяць тому

    very usefull tips

  • @Dipenparmar12
    @Dipenparmar12 Місяць тому

    This is amazing

  • @simplyeditor4187
    @simplyeditor4187 Місяць тому

    Bro how to use inset ?

  • @ViniciusNegrao_
    @ViniciusNegrao_ Місяць тому

    tip #7 is actually awesome!! I still don't know why the f*** we can't transition height into auto
    PS: #10, I didn't know you could animate variables 🤯

  • @sharmastyles2749
    @sharmastyles2749 Місяць тому

    for tip 1 me using box shadow

  • @tobiasfedder1390
    @tobiasfedder1390 Місяць тому +1

    The thumbnail is outrageous; suggesting grid is for noobs and columns for pros. Very different layout mechanisms, solving clearly different problems.
    Excellent rage bait. Great content. 👍

  • @joanmonterrey1368
    @joanmonterrey1368 Місяць тому +2

    About the tip #7, there's a new way to animate the auto value with no javascript.
    .container{
    overrflow: hidden;
    height: 1.5rem;
    transition: height 150ms ease;
    ...
    interpolate-size: allow-keywords;
    }
    .container[open]{
    height: auto;
    }
    And that's it! but of course, the interpolate-size property isn't widely accepted yet for the browsers, at this date it has 44.68% of acceptance (:
    Btw, I loved tip #9!

  • @HuynhLuong227
    @HuynhLuong227 Місяць тому

    wow, thanks for sharing

  • @khalidthedev95
    @khalidthedev95 Місяць тому

    how to give the border-image some radius?? doesn't work with border-radius

  • @anjon-roy
    @anjon-roy Місяць тому

    Superb

  • @bharatdubey83
    @bharatdubey83 Місяць тому

    Please launch JavaScript course

  • @solarspear27
    @solarspear27 Місяць тому +4

    Inset-0 m-auto 🥵

  • @sale7680
    @sale7680 6 днів тому

    Bravo

  • @AbidKhan-bn4lc
    @AbidKhan-bn4lc Місяць тому

    Good

  • @muhammadfurqanalam
    @muhammadfurqanalam Місяць тому

    8:40 exactly 💯 :(

  • @erthboy47
    @erthboy47 Місяць тому +1

    Filter: drop-shadow is WILD lol

  • @AsifAli14280
    @AsifAli14280 Місяць тому

    Great

  • @Undead34
    @Undead34 29 днів тому

    100 CSS PRO Tips and Tricks you NEED to know 🙌🙌😘😘💕💕

  • @gareth2021
    @gareth2021 Місяць тому

    nice

  • @mayankraj6201
    @mayankraj6201 Місяць тому

    Every pro was once a noob😊

  • @StressedProgrammer
    @StressedProgrammer Місяць тому

    any body knows how to make border image circular?
    its always in square no matter what i do

  • @RASTUDIO_0
    @RASTUDIO_0 Місяць тому

    Big don came to UA-cam who is very passionate to build and teach coding every one who want to become a professional in this field...
    Good work, make complete video on full stack web development .
    Love from Pakistan, I can not speak English but l like so much your videos as well as your coding 2 go channel. By the way, your channel is gift for me to learn coding in my life, your videos and your coding level on the next level, before watching this video, I would say that you have a great experience Fabian Sir...
    Thanks for this amazing and informative video...

  • @codesthenos
    @codesthenos Місяць тому

    pure gold video, cant explain more usefull things in less time, no possible

  • @Homelander_30
    @Homelander_30 Місяць тому +1

    Bring js

  • @MortenAndersen-hjemmesider
    @MortenAndersen-hjemmesider Місяць тому

    Sadly in Safari the margin-bottom inside columns is not working

  • @fabsn182
    @fabsn182 Місяць тому

    Columns has been around since the early days of CSS? No, not even close. Firefox and IE introduced it in 2012, Chrome in 2016. CSS is from 1996.
    Chrome had Flexbox (prefixed) since 2010, Firefox (prefixed) since 2007.
    Also do not build a custom accordeon using JS. Always use the checkbox-hack for such things and leave JS out. This way, users can already navigate your site, even if the js is still loading (hello mobile data)

  • @RogiervanCann
    @RogiervanCann 27 днів тому

    If only all users were using a modern browser....

    • @filippotinnirello
      @filippotinnirello 21 день тому +1

      These tips all works on 90% of browser that's considered acceptable as a developer

  • @Nodsaibot
    @Nodsaibot 26 днів тому

    6:23 cmon man just use max-height

  • @RichardRobinson-x2f
    @RichardRobinson-x2f Місяць тому

    Thomas Frank Martin Scott Robinson Timothy

  • @gpatil4456
    @gpatil4456 19 днів тому

    lun dev is fking genius

  • @jimraynor3155
    @jimraynor3155 Місяць тому

    Man, CSS is horrible

  • @marccalis9444
    @marccalis9444 Місяць тому +1

    What happend with you voice? Not cool

    • @XTheCat
      @XTheCat Місяць тому

      Damn rasist much? He's always sounded like that

  • @erthboy47
    @erthboy47 Місяць тому

    I WISH I DIDNT USE A WYSIWYG BUILDER AT MY JOB I WANT FREEDOM LOL