This CSS Property Replaces Hundreds of Lines of Code

Поделиться
HTML-код
  • Опубликовано: 3 фев 2025

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

  • @alexanderst.7993
    @alexanderst.7993 3 часа назад +46

    I'm not a frontend dev anymore but i still come back just to see the head wobbling. It's great

    • @jaredlash5002
      @jaredlash5002 15 минут назад

      My guy throws his head around more than Ray Charles.

  • @serogaiusufir9615
    @serogaiusufir9615 4 минуты назад

    i remember having headache doing this on my chat app, good update !

  • @adityaanuragi6916
    @adityaanuragi6916 2 часа назад +3

    Ran into this problem when making my own notes app
    Used the useLayoutEffect hook and it worked wonders
    I know this video is with CSS only and but incase someone is stuck with it in React like me I thought this'd help
    Great video btw

  • @samistube
    @samistube Час назад +1

    Hundreds of lines and incredibly Hard to build, is the the clickbait of the year, as its literally an oneliner to attach height =scrollheight to an input event. Never needed that width expansion but similar thing for y axis i imagine.. Cool to have that in CSS tho, thanks for the info

  • @TheMetalMag
    @TheMetalMag Час назад

    this is going so fast!

  • @tchpowdog
    @tchpowdog 2 часа назад +3

    This is cool, but in my experience, textarea is becoming antiquated. It's good for raw text input on forms, but.. that's kind of it. Most other situations nowadays require some type of rick content within the text block. So you use a div with contenteditable="true". I wish there were more/better native features for contentedible divs.

  • @LV4EVR
    @LV4EVR 2 часа назад +1

    I can definitely see use cases for this. But ... come on Firefox!!!

  • @harshanawijesinghe9264
    @harshanawijesinghe9264 2 часа назад +1

    This is really usefull. And most importantly droped the right time 😂❤

  • @gmnayeem25
    @gmnayeem25 2 часа назад

    Thanks for sharing the helpful content ❤❤

  • @bharatdubey83
    @bharatdubey83 2 часа назад +2

    Waiting for your javascript backend course.

  • @stephencopeland3908
    @stephencopeland3908 47 минут назад

    very useful, thanks!

  • @eddie_dane
    @eddie_dane 2 часа назад +7

    A brand new thing, I am never gonna use!

  • @exopencartru
    @exopencartru 2 часа назад +4

    Never saw it as problem, just replace textarea with regular div, add contenteditable=true. If it's about send data to the server, add a few line of code to copy content of div to some hidden input. Of course one line of CSS is better, but even before it came out it wasn't a big deal💁‍♂

  • @naimur634
    @naimur634 Час назад

    we are waiting for a reverse scrollable scrollview

  • @MonkeyDLuffy-t2b
    @MonkeyDLuffy-t2b 2 часа назад

    Great content as always.
    Just one Request :- Can you please speak slowly ? My mother tongue is not English. Although I can understand English pretty well, keeping up with your speed is still hard.

    • @TN-es7ei
      @TN-es7ei Час назад +2

      You can slow down the play speed to 75%.

  • @GoingOno
    @GoingOno 2 часа назад +1

    I didn't find it useful. As a frontend developer, I don't like when the input field moves around while the user is trying to enter information.

    • @craigkidd6197
      @craigkidd6197 35 минут назад

      Great! You felt compelled to share this? I had to bother scrolling past it.

  • @m12652
    @m12652 2 часа назад +4

    Personally I wouldn't want inputs to resize to content as the page layout would shift every time more space was required.

    • @redragon9588
      @redragon9588 Час назад

      just put max width, max height

    • @m12652
      @m12652 Час назад

      @ that wouldn't stop it automatically resizing unless they were the same as the min values...?

  • @deatho0ne587
    @deatho0ne587 2 часа назад

    Only see textarea and only to max-height, content shift no thanks.

  • @КириллТимофеев-п1л

    Can I Use: 72.81%

  • @rickharold7884
    @rickharold7884 Час назад

    cool

  • @seanfrankruyter4008
    @seanfrankruyter4008 2 часа назад

    Too bad it's not baseline yet

  • @sarthakghoshal-l4n
    @sarthakghoshal-l4n Час назад

    Poggers

  • @linela
    @linela 2 часа назад +1

    So how this can be useful? For me, this is BS.

    • @--bountyhunter--
      @--bountyhunter-- Час назад +2

      useful if u r working with textarea specially on chatting related applications. like discord for example.
      i am currently working on a chat application as well and i had to do it in quite a hefty way. This will be very useful