4 ways to deal with overflowing text

  Рет қаралды 83,108

Kevin Powell

Kevin Powell

Күн бұрын

Пікірлер: 86
@felixcornelissen89
@felixcornelissen89 2 жыл бұрын
Another good option is to add the ­ character where you would like the word to break. In this case you could have awe­some. It adds a hyphen if the word doesn't fit, but otherwise it's invisible
2 жыл бұрын
woow!
@aram5642
@aram5642 2 жыл бұрын
Equiv of (word break opportunity).
@jshstuff
@jshstuff 2 жыл бұрын
That’s so cool
@dripcaraybbx
@dripcaraybbx 2 жыл бұрын
But then you're coupling markup with presentation. We shouldn't have to pollute the content like this to account for or workaround limitations in the UI.
@felixcornelissen89
@felixcornelissen89 2 жыл бұрын
@@dripcaraybbx I get your point but it's a trade-off imho. It would be better if the browser understood the language well enough to make the decision where to break the word on it's own, but we're not there yet. In the mean time, you can help things along by giving the browser suggestions. You're saying: I don't know what the presentation will be exactly, but if you ever need to break this word, this is where to do it.
@aviralvikram9431
@aviralvikram9431 2 жыл бұрын
This problem occurs many times in my projects and i don't how, but somehow Kevin always manage to predict what we need and what's most useful for us one by one.I really appreciate these super juicy knowledge you are sharing with us Kevin. You are filling that 20% knowledge gap which makes the difference between an intermediate, advance and Professional developers.
@RichardAcquaye-l7n
@RichardAcquaye-l7n 4 күн бұрын
Overflow wrap is a new one for me! Once again you saved the day!!
@TheElkster
@TheElkster 2 жыл бұрын
Really great to see 'all' the options available! Thanks, Kevin!
@gwemula
@gwemula 2 жыл бұрын
That last bit about @container explains what container queries is better than some other videos I’ve seen on KZbin.
@venomus9286
@venomus9286 2 жыл бұрын
This channel has so many tips and tricks, it is insane. KP, lord of html and css.
@rproctor83
@rproctor83 2 жыл бұрын
Can't wait for container stuff to be more supported, it is like a dream come true.
@ethisfreedom
@ethisfreedom 2 жыл бұрын
Thank you so much Kevin for making css easier for us to understand
@sumdev4983
@sumdev4983 4 ай бұрын
Dude! you are a CSS GOD!!! You should have a billion subscribers!
@brainheap
@brainheap Жыл бұрын
i just know CSS is awesome cause you are awesome without your valuable videos, i can't find out the beauty of CSS
@alcardm
@alcardm 2 жыл бұрын
This is a sort of "Memebuster: css edition". As you seen on TV.... love it!
@bobross2404
@bobross2404 2 жыл бұрын
Hope you're having a great day! thank you for all the awesome videos
@teelovelock
@teelovelock 2 жыл бұрын
I love your channel your energy makes the videos enjoyable regardless if I need the information right away ill watch it anyway for fun 😊😊
@suhaybjirde
@suhaybjirde 2 жыл бұрын
i feel excited while watching your videos and get some thing i didn't know
@ronak1520
@ronak1520 Жыл бұрын
❤man it helped me a lot thank you God bless
@PhilLesh69
@PhilLesh69 8 ай бұрын
I know this is a JavaScript solution, but I had one project where I finally gave up trying to deal with word wrapping on wildly varying length of text in some headings that I wrote a javascript function and attached a listener to page load that calculated the height of the element and if it was 2 times the line height it would reduce the font size by a percentage and recalculate until the element height was equal to or less than the line height. It was a little clumsy since a page would load with a heading that occupied more than one line and then users could see the heading change sizes really quickly and realign the element flow accordingly. So it was probably bad for page speed and other seo metrics. But it fixed that immediate problem at least.
@rkrupon
@rkrupon 6 ай бұрын
you this video is very effective for beginner. I am speaking from Bangladesh.❤
@Usaid-u5u
@Usaid-u5u Жыл бұрын
I really Helpfull for your video,Thank you soo Much
@rilan07
@rilan07 2 жыл бұрын
This is awesome, Thank you Kevin
@MrOliver1444
@MrOliver1444 Жыл бұрын
I love CSS thanks Kevin!
@StephanBerrill
@StephanBerrill 7 ай бұрын
i like this .title { overflow: hidden; text-overflow: ellipsis; }
@makingtheweb6620
@makingtheweb6620 2 жыл бұрын
Perhaps you should make an algorithm of your choice or so a poll on what improvements would be the easy way for ways to make it much easier to make a website/s. The whole CSS eco system seems very un-human-friendly and overly complicated. I'm sure you have some great ideas on ways to make the job much straight down.
@vi_shw
@vi_shw Жыл бұрын
your video pop-up when I want solution for my project .
@DaBigin
@DaBigin 2 жыл бұрын
Hey Kevin, I couldn't get this to post in your KZbin ideas section. Here recently I was trying to answer a question on how to set a margin on a item in a navbar that uses bootstrap classes, but when I got to looking at the documentation I got confused. I was wondering if you could make a video on the topic. I'm sure people n would want to watch it. Thanks again for the b work you do. It's appreciated.
@Jack-ss4re
@Jack-ss4re 2 жыл бұрын
3:40 that some god level shit
@Zakaros1000
@Zakaros1000 2 жыл бұрын
wow, that container thing is awesome
@illiayehorov5008
@illiayehorov5008 2 жыл бұрын
very cool techniques. i watch your videos all the time and admire the solution. Unfortunately, just that I don't understand English very well ))) Because I am from Ukraine. But I try to learn English !) Thanks for the video!
@kevinwg02
@kevinwg02 2 жыл бұрын
beautiful, simple! keep it up ;)
@riadbenosmane8561
@riadbenosmane8561 Жыл бұрын
you saved me thank you soooo much man
@aram5642
@aram5642 2 жыл бұрын
White spacing , word break... this is one of the things I always have to look up. And Chrome, please we are waiting for cq!
@KevinPowell
@KevinPowell 2 жыл бұрын
They are in Chrome :D We're just waiting for Firefox now, and it's about to go into Nightly from what I understand!
@DaviAreias
@DaviAreias 2 жыл бұрын
That cqi is a game changer
@ShahnewazTameem
@ShahnewazTameem 2 жыл бұрын
Great and informative
@samuelfernandes4819
@samuelfernandes4819 6 ай бұрын
thanks!
@reachin4thetop709
@reachin4thetop709 2 жыл бұрын
your awesome bro. U r very cool ma man. Keep it up
@benfrese3573
@benfrese3573 2 жыл бұрын
really nice thumbnail btw!!
@alexdubkov6998
@alexdubkov6998 8 ай бұрын
Super content!
@mohd-obid
@mohd-obid 2 жыл бұрын
Thank you ❤️
@Coachnereus
@Coachnereus 2 жыл бұрын
i currently have this problem in a project, Thanks
@n_mckean
@n_mckean 2 жыл бұрын
Careful with some of those. For WCAG 2,1 the user must be able to achieve 200% bigger font sizes without loss. Clamp can torpedo that as just one example.
@KevinPowell
@KevinPowell 2 жыл бұрын
If font-sizes are set in rem (and the middle value in the clamp() includes a + rem value), it shouldn't cause any issues... I think 🤔
@n_mckean
@n_mckean 2 жыл бұрын
@@KevinPowell there's some lovely work by Adrian Roselli on this is you care to deep-dive. Just thought I'd add the note for others because there are definite cases where issues exist.
@KevinPowell
@KevinPowell 2 жыл бұрын
@@n_mckean I'll definitely look into it 👍
@penguinxed
@penguinxed 2 жыл бұрын
another very useful content sir, thanks!
@makingtheweb6620
@makingtheweb6620 2 жыл бұрын
Another good video. Would shrinking font size be ok on mobile? Can you do more with container queries? Can It be used as an Articles container.
@johanstam3602
@johanstam3602 Жыл бұрын
Hi Kevin! Can you do a short/video on how to create a flexbox container (with a max width and content centered) where a flex item (image) bleeds to the right of the viewport?
@AlexFetfa
@AlexFetfa 2 жыл бұрын
Yo Kevin you just hit 666k subs, congrats
@labialkosta261
@labialkosta261 2 жыл бұрын
Thanks for sharing
@webdevschool6597
@webdevschool6597 2 жыл бұрын
Overflow: ellipsis, Am I a joke to you?
@Saleca
@Saleca 4 ай бұрын
Why is hyphen a problem? I use hyphen: auto; and it seems really usefull. I am just looking for a way to avoid a line before an email (that i dont wanna break) to be too spaced out (due to justified content)
@adityapnair5515
@adityapnair5515 2 жыл бұрын
Is it possible to add flexbox into an already existing code and modify the code accordingly?
@VishnuandAvyukt1918
@VishnuandAvyukt1918 2 жыл бұрын
Hey Kevin, Can we know the SCSS course launch date please 🙏
@darshansr9025
@darshansr9025 Жыл бұрын
how can i keep track of your content. Is there a code pen available for this?
@mmuralikrishna2881
@mmuralikrishna2881 2 жыл бұрын
HeyKevin.. Waiting for Css Rocks
@victoraghaebita2090
@victoraghaebita2090 2 ай бұрын
I'm actually looking for how to deal with overflowing borders
@ravitejadarla3882
@ravitejadarla3882 2 жыл бұрын
Please make a video how to make our page smooth scroll after adding heavy animations
@franktielemans6624
@franktielemans6624 2 жыл бұрын
I use ­ Soft hyphen in HTML
@zakidzz
@zakidzz 2 жыл бұрын
hi can you please make a design system with scss and make a website using that design system also use react
@MyDpop
@MyDpop 2 жыл бұрын
there is a fifth approach to solve this problem: use a *shorter word!* Also not perfect But hey it's a solution! happy thanksgiving 🎃🎃
@KevinPowell
@KevinPowell 2 жыл бұрын
I've definitely done that before, lol
@AshishSharma-j6r
@AshishSharma-j6r 9 ай бұрын
0:51 problem right here, but the problem is in the left. oh you are talking about yourself. "kidding😂😂😂😂"
@hallucinations5456
@hallucinations5456 2 жыл бұрын
I forgot your name and searched for css king
@BackToVoid
@BackToVoid 2 жыл бұрын
i always use Tailwand for my css am i noob ?
@SigmaMaleBakdat
@SigmaMaleBakdat 4 күн бұрын
Finally!!!!!youtube search is dumb man
@JB-fh1bb
@JB-fh1bb 2 жыл бұрын
@1:41 Ciao!
@amircahyadi9219
@amircahyadi9219 2 жыл бұрын
❤️❤️👍
@musteemustang3439
@musteemustang3439 Жыл бұрын
Please who can help me out with how to deal with overflow in carousel or slide images.
@sinanisler1
@sinanisler1 2 жыл бұрын
i would just give span to that word and I am good to go. :)
@KosmokratorVideo
@KosmokratorVideo 2 жыл бұрын
I will never understand why the SHY tag didn't get any real support in html.
@anugyasharma1649
@anugyasharma1649 2 жыл бұрын
am i dumb or what nothing works on me :(
@devilreaper8543
@devilreaper8543 2 жыл бұрын
css: container-type is yet not supported by Firefox........
@KevinPowell
@KevinPowell 2 жыл бұрын
I know, I mentioned that browser support isn't great before going into how it works, and they're about to put it into Firefox Nightly, so it shouldn't be *too* much longer
@mistervallus185
@mistervallus185 2 жыл бұрын
wouldve been if you showed how to make the word cut of with a ... eg: This is too lo...
@imrondev
@imrondev 2 жыл бұрын
Congratulations with 666k subs)))
@User-w8t4t
@User-w8t4t Жыл бұрын
p {display: “none”}
@Samahady5159
@Samahady5159 2 жыл бұрын
First! Hi Kevin
@foxxo-dev
@foxxo-dev 2 жыл бұрын
22nd commenter ^^
@XMattingly
@XMattingly 2 жыл бұрын
.kevin-powell { overflow: awesome; } 👈🤓
Lower the opacity of a background-image with CSS
7:03
Kevin Powell
Рет қаралды 72 М.
How to take control of Flexbox
16:01
Kevin Powell
Рет қаралды 149 М.
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
The problems with viewport units
13:23
Kevin Powell
Рет қаралды 371 М.
How To Limit Lines Of Text With CSS Only
11:53
Web Dev Simplified
Рет қаралды 117 М.
2 better alternatives to overflow: hidden
11:04
Kevin Powell
Рет қаралды 163 М.
My best CSS tips from 2024
16:55
Kevin Powell
Рет қаралды 26 М.
I Spent 100 Hours Inside The Pyramids!
21:43
MrBeast
Рет қаралды 38 МЛН
Learn CSS Subgrid in 14 minutes
14:19
Slaying The Dragon
Рет қаралды 97 М.
The CSS Display Property is Changing Forever
15:20
Web Dev Simplified
Рет қаралды 90 М.
A flexbox trick to improve text wrapping
5:02
Kevin Powell
Рет қаралды 230 М.
Useful & Responsive Layouts, no Media Queries required
11:03
Kevin Powell
Рет қаралды 187 М.
9 Web Design Trends 2025 to Spruce Up Your Site
16:33
Showit
Рет қаралды 106 М.