Thanks, that was very helpful. The only issue with your videos I regularly have is that they are so packed with information that my brain goes into overflow.
@shikhargupta42493 ай бұрын
😂😂
@stephenuchenna82293 ай бұрын
😂😂
@adityaprasad31223 ай бұрын
Use only the things you face problems with i.e add overflow to be auto
@feynthefallen3 ай бұрын
@@adityaprasad3122 Overflow on my brain is on auto.
@SNAKEx1972 ай бұрын
Well if I run into a problem, I look it up or I surf KZbin. Stuff like this sticks to me because it fixes problems that I’m facing on my projects or at work. Bookmark these videos. You’re not expected to remember everything, only stuff you apply to your work.
@leonelcenteno38163 ай бұрын
I am working on a website for sports journalists and the text-overflow property just made my day. Thank you!
@tinny772 ай бұрын
Also, you can set the height of the box with the CSS unit on, that's exactly one line of these height. 3lh will show three lines of texts avoiding the clipping of and the guessing with pixels
@Turabbo3 ай бұрын
One extra tiny thing; the "text-wrap" longhand property is now baseline. So instead of memorising "white-space:nowrap" whenever you need text truncation, you can use "text-wrap:nowrap" instead. It's super trivial, but I love how much more common-sense it feels when I'm explaining it to new developers. Just a tiny little quality of life thing.
@kaustavroy65423 ай бұрын
Thanks it was much needed for me. Was struggling with word wrap in cards.
@HeyNoah3 ай бұрын
Really helpful walkthrough for dealing with text and overflow!
@Philip-philippe2 ай бұрын
Wow you are sooo informed mahn. I wanna be greater than you in future.
@CalvinMwaipopo3 ай бұрын
This is very useful, Thanks a lot
@berkaybakacak2 ай бұрын
wow. this video taught me a lot. Thanks a lot :D
@mcbalz3 ай бұрын
What editor are you using!? It’s awesome
@mcbalz3 ай бұрын
Never mind I zoomed in and saw it is vscode. Cool
@khorium96262 ай бұрын
Really helpfull, thank you.
@mina863 ай бұрын
Related question: How do I limit width of a PRE so that it, **together with all the inline margins and padding**, is never wider than 100svw. If I try ‘max-width: 100%’ it is sized to fit the content and causes horizontal scrolling on the page. If I try ‘max-width: 100svw’ the content of PRE is limited to width of the width of the browser window but additional margins and paddings of ancestor elements still causes horizontal scrolling on the page. Best I figured is something like ‘max-width: calc(100svw - 3rem)’ where I manually add all the margins to get ‘3em’ but that doesn’t work if margins are changed or I move PRE inside of another nested element.
@XRAYPubgMobile3 ай бұрын
Did you try putting box-sizing:border-box; on the pre?
@XRAYPubgMobile3 ай бұрын
In combination with the max-width 100svw; i think it might work.
@1RqMi2 ай бұрын
Thanks kyle 😎
@Caldaron2 ай бұрын
Kyle the ninja. avoiding invisible bullets left and right, swoosh swoosh
@DxBang3D2 ай бұрын
we no longer need to write overflow-x and y, we can do overflow: hidden scroll/auto. (at least in Chrome and Firefox)
@keviincosmos2 ай бұрын
Also try to use ­ Inside a word, and an automatic hyphen will be inserted. Ex: reallylongwordhere Do: reallylong­wordhere Will automatically do this as the block is getting smaller. reallylong-wordhere
@JeannetteMedja2 ай бұрын
Yo bro i just started coding and already learned tailwindcss, css, js and svelte. Now am looking to enhance my skill by learning animations ( scroll trigger etc... ) so do you think it's easier to do in js, css or even tailwind am lost a bit thank you And thank u for your work this help us a looooottt 😅
@TarrenHassman2 ай бұрын
I started using framer motion for animations and I’m a fan so far. Css based animations can have a lot of weird performance bugs and require using a bunch of WebKit flags, etc. to work on every browser. Framer motion is performant and more intuitive imo
@JeannetteMedja2 ай бұрын
@@TarrenHassman thanks bro, I'm really not a fan of the use of too much library ( maybe bcz am a new programmer) bcz i feel like it overcomplicate things in the sense that when a bug occur you will spend a lot more time to figure out and that make the code more difficult to read for someone else That's why I'm learning motions with js but i think i will go for gsap since i heard a lot of good think about it, or please can you tell me more on the issues with css animations ? ✨
@TarrenHassman2 ай бұрын
@@JeannetteMedja Sure. One of the ones I ran into recently was animating comic css gradients caused them to strobe on certain resolutions. Framer-motion converts your css animations to a performant implementation. It essentially replaces the key frames and animation declarations in css. You still animate using css props they just get written in the inline props on the motion.div/p/etc components of framer-motion. I’m not a big fan of a bunch of libraries either, but this is one I’d recommend
@gokhanbahadir7583 ай бұрын
Awesome content. I feel like an absolute geek to watch and learn continuously, while some so-called devs I encountered are still using nbsp for fixing placement 😂 and they are still hired as "senior" title...
@NikitaDrokin3 ай бұрын
To be fair, if someone doesn't know all these good CSS workarounds, a nbsp may be a good bandaid fix. It's not perfect, but it still works sometimes.
@gokhanbahadir7583 ай бұрын
@NikitaDrokin as a lazy dev, sometimes I use it too 😅 what I'm actually trying to say is I can't understand why some devs stop learning and improving themselves. Even if I don't know something, i should at least try to learn. I learned these css properties to make a 2 line ellipsis last week. I could have said I only know one line ellipsis, but I see these as a learning opportunity. I think a software developer should always be eager to learn and brave to challenge his skills. Yet I see ppl already given up learning in their late 30s, but still expecting respect from juniors who are way more knowledgeable. In short, I know someone like this who codes so bad that I and a newly graduated junior have to fix all the time 🥲
@mohamadybr3 ай бұрын
I am sure there is no position of "senior CSS developer" and they are probably hired for other skills they have. Senior devs are usually responsible for making higher end development decisions, so they need to focuse more on improving their decision making skills instead of learning and knowing all bleeding-edge hacks and updates. Additionally, majority of senior devs are older people, so they didn't have access to such knowledge when their job was making sure their code is up to date when standards
@trappedcat36153 ай бұрын
I need the video on how to center a div like a Senior Dev.
@mahidmunna012 ай бұрын
Thanks 💥❤️
@arunbm1232 ай бұрын
brilliant !
@shaikshavalisyed20123 ай бұрын
Excellent.
@n1_ozzy3 ай бұрын
just in time
@prajapati_dp2 ай бұрын
great !
@hieunguyenhoang19482 ай бұрын
Try this and comeback here, give me one like if this resolve your solution. I always do it in my project
@ezwtwrziehag17363 ай бұрын
prop tip: The overflow-wrap property should be applied to the element that directly contains the text.
@alvaroprietovideos3 ай бұрын
Nice video 👍
@cipherxen23 ай бұрын
I have new idea of a project: head wobble stabilizer. It's very hard to watch you without feeling dizzy.
@tylertamplin43653 ай бұрын
Good videos. I just wish he’d hold his head still 😊
@surajitdas65553 ай бұрын
Brother how to implement ellipsis in the middle dynamically with windows resize event
@squeally2 ай бұрын
No middle ellipses with pure CSS, Aug 2024.
@SamuelKarani2 ай бұрын
Masterfully done. However you did not fully cover all the whitespace properties
@sergeisurin2963Ай бұрын
👍
@0theslayer6443 ай бұрын
First to be here! No idea why I commented this.
@culan_SCP3 ай бұрын
5th
@xilliman2 ай бұрын
You will laugh, but we actually habe sich long words in our German language 😂 7:09
@bapydev2 ай бұрын
woooowwwww
@MohammedHusainmobikira3 ай бұрын
One suggestion plz use in your video Anything you showcase or teach try to teach in a way of animation which show red cross that this is wrong first than after changing it show green tick that this is right I think this way your video get full attractive as i think over youtube now days Although your content is very special and helpfull for me, THANK YOU.
@ezwtwrziehag17363 ай бұрын
10:25, if overflow-wrap is set to break-word, why does the width: min-content property of the div not consider asdf as its min content anymore? this doesnt make any sense
@Siderite3 ай бұрын
Too bad they didn't add a CSS property that allows you to have an automatic title on the elements with clipped text. it always annoyed me that I could do all of this through CSS, then I had to write complicated code to: 1) detect there has been some clipping 2) manually add/remove the title attribute.
@rock44593 ай бұрын
10th comment ,no Idea why i comment this
@okkaraung95123 ай бұрын
First comment
@SperkSan3 ай бұрын
Why do you always shake your head so much, Kyle? 😂😂
@Michael_moa2 ай бұрын
It's the way he talks 😂
@bogdanc773 ай бұрын
Please not pin 😅
@borstenpinsel3 ай бұрын
Css4 shouldn't add anything but remove a bunch of stuff. 😮😅
@romainbacque94082 ай бұрын
Do you think ai will replace coders ?
@loganhall15292 ай бұрын
No
@ChadFrontend3 ай бұрын
Chad Frontend approved. ✅
@yairvsync2 ай бұрын
`overflow-wrap` is years-old. Best combined with `hyphens: auto` both years old... most of the content in the video is years old and very much not new
@levsonc2 ай бұрын
Unfortunately, hyphens: auto is not supported for many non-english languages in Chrome.
@prajwaljoshi89833 ай бұрын
pin please❤
@_brahim_2 ай бұрын
@TheCârtiță3 ай бұрын
Every month something new❤️🩹i wish i cold do websites🥺nice tough to at least be up to date with the novel things