Wrap text around any image or shape that you want with shape-outside and shape-margin

  Рет қаралды 82,428

Kevin Powell

Kevin Powell

Күн бұрын

Пікірлер: 140
@KevinPowell
@KevinPowell 3 жыл бұрын
The first 1000 people to use the link will get a free trial of Skillshare Premium Membership: skl.sh/kevinpowell03211
@kuntaldas2843
@kuntaldas2843 3 жыл бұрын
what the... Kevin using time machine
@rohitbisht5457
@rohitbisht5457 3 жыл бұрын
A very nice video sir u r the best. A quick request, can u make a video about a parent div element who is smaller in size compare to its child div element and has overflow hidden . And the objective is to have a moving animation of parent div over its child div without moving its child div during animation Thank you
@marcod.643
@marcod.643 3 жыл бұрын
Interesting video as always and... nice T-Shirt 🤣🤣🤣
@KevinPowell
@KevinPowell 3 жыл бұрын
Thanks! 😁
@Morrile1
@Morrile1 3 жыл бұрын
Whilst this is something I don't think I would use (yet) it does highlight that web designing is very fluid and ever changing. Many thanks Kevin for the Skillshare Premium membership :-)))
@FieryHammer
@FieryHammer 3 жыл бұрын
I have found your channel during the weekend and I am watching since. I could already use some stuff you show in your videos and have marked a lot to see later. I have also added your course on my ToDo list. You are one of the few people who make me understand CSS and be actually excited about doing things with it :)
@scheimong
@scheimong 3 жыл бұрын
Love it. Wish I had known about it when I was writing code for my custom multi-line ellipsis. I had so much trouble that I eventually gave up. This auto-wrap trick would basically make that trivial.
@guillermoandradaFSD
@guillermoandradaFSD 3 жыл бұрын
The most desirable content I found on the Internet about this subject. Thanks Kev for teaching like that.
@shivanshshalabh
@shivanshshalabh 3 жыл бұрын
I was just going to search for a video on this topic. Thanks a lot for putting up this video 'CSS KING'
@JimGarns
@JimGarns 3 жыл бұрын
It annoys me how much I have to question the amount I know about CSS after watching every one of your videos!! Thanks for this, added to my snippet catalogue
@cintron3d
@cintron3d 3 жыл бұрын
Ok that url trick is dope. Many thanks for sharing all these tips!
@iiviigames
@iiviigames 3 жыл бұрын
If I had watched this when I woke up this morning, I would have saved myself 10 hours of rage and I'd still have a 2 monitor setup.
@harishst202
@harishst202 3 жыл бұрын
Awesome as always! Thanks for sharing!
@Pfoffie
@Pfoffie 3 жыл бұрын
Thanks for float-root 🥰😍❣️
@KevinPowell
@KevinPowell 3 жыл бұрын
I just wish we had it 5+ years ago 😅
@Pfoffie
@Pfoffie 3 жыл бұрын
@@KevinPowell i so agree haha
@VladimirJanjic02
@VladimirJanjic02 3 жыл бұрын
I started so far with videos and i am going to watch every video u made in last month also, so far i can say you are getting better and better and your content is much better every time, so i am glad u are making progress and continue like that, big support for you work! :)
@SouravTechLabs
@SouravTechLabs Жыл бұрын
Great tip, watched this 2 years back, but using it now! The real challenge however comes when the image, in my case it's a doughnut chart from vue-chart, needs to be in the middle!
@timbittins
@timbittins 3 жыл бұрын
Wonderful! Now I can wrap text around images like I wrap my head around CSS. Thanks Mr. P!
@anb1142
@anb1142 3 жыл бұрын
I've been stuck at this problem for hours You're a godsend
@harounach
@harounach 3 жыл бұрын
Thanks Kevin this is pretty awesome
@KevinPowell
@KevinPowell 3 жыл бұрын
Thanks, glad you enjoyed it :D
@BigBadTubaDudeCRA
@BigBadTubaDudeCRA 3 жыл бұрын
This blew my mind . I'm making a website for Basics of Web Development class and it's a presidential campaign page for Saitama from one punch man. I wrapped the bio text around OPM and my teacher said he didn't know how I did that so it blew his mind too!
@techtipsuk
@techtipsuk 3 жыл бұрын
Flow root, you learn something new every day
@djordjek3916
@djordjek3916 3 жыл бұрын
Thank you very much for everything you do Kevin. I always learn something new from watching your videos. Liked.
@jsthaut
@jsthaut 3 жыл бұрын
Thank you so much you don't know how much i needed this tutorial
@MyIreallydontcare
@MyIreallydontcare 3 жыл бұрын
Kevin, I bloody love your videos.
@sulaimandev
@sulaimandev 3 жыл бұрын
Most needed video
@joandmello660
@joandmello660 3 жыл бұрын
You are simply awesome Kevin
@KevinPowell
@KevinPowell 3 жыл бұрын
Thanks!
@AlanWagoner
@AlanWagoner 3 жыл бұрын
Great video and I liked the shirt!
@celeis100
@celeis100 3 жыл бұрын
This has definitely made my portfolio better looking, thank you so much!
@0xbitbybit
@0xbitbybit 3 жыл бұрын
Awesome, such useful videos, cheers mate!
@jatinkhatri9650
@jatinkhatri9650 2 жыл бұрын
struggling for this thing for one day. Thanks a lot. You made my day.😇
@abdelmonemnaceur7776
@abdelmonemnaceur7776 3 жыл бұрын
Who else is waiting for new videos notifications from Kevin's channel! Interesting :D!
@harshjain8345
@harshjain8345 3 жыл бұрын
Wow...great And unique css property..🙌🙌
@ortania
@ortania 3 жыл бұрын
By the way, In Chrome there is CSS Shapes Editor extension for dev tools, that works in a similar way as in Firefox
@ginaGale
@ginaGale 3 ай бұрын
Thanks, this is just what I needed.
@GergelyCsermely
@GergelyCsermely 3 жыл бұрын
Thank You!
@KevinPowell
@KevinPowell 3 жыл бұрын
Glad you enjoyed it!
@galiprandi
@galiprandi 3 жыл бұрын
Great t-shirt and great video! 👏
@peteharrison3241
@peteharrison3241 Жыл бұрын
Great tutorial Kevin, thanks. I found this example of creating hexagon/polygon grids, can you use similar techniques you've used to wrap text around the image to shape text inside the hexagons ?
@sjohn2924
@sjohn2924 3 жыл бұрын
Vaov!!, it was very interesting to learn that, Thanks Kevin
@AntoniKrokodyl
@AntoniKrokodyl Жыл бұрын
Great video, love the t shirt.
@MohammadAbdulHyeShaon
@MohammadAbdulHyeShaon 3 жыл бұрын
Awesome....Go Ahead
@thevonmunchies9213
@thevonmunchies9213 2 жыл бұрын
Super useful! Thank you!
@tessamactaggart5822
@tessamactaggart5822 3 жыл бұрын
Just wow.. and so well explained! Thank you.
@ahsath
@ahsath 3 жыл бұрын
That's new, I remember a while ago I wanted the create a wave couldn't do it, but with path() oh boy
@Beat0X
@Beat0X 3 жыл бұрын
You can see the shape-outside of url type in chrome devtools ça simply hovering over the element that has the property in the elements tab
@ari_archer
@ari_archer 3 жыл бұрын
this content is underrated
@Mathemarius
@Mathemarius 3 жыл бұрын
5:42 The reason why this wasn't working as you expected is that you put all points on the diagonal (same x and y value).
@yupii1997
@yupii1997 3 жыл бұрын
Educational and great video as always Kevin as a self thaught(still learning) developer your videos help me so much
@vishsingh7235
@vishsingh7235 3 жыл бұрын
OMG Kevin. I need that shirt!
@franciscomagalhaes7457
@franciscomagalhaes7457 3 жыл бұрын
Hey Kevin, if you made a lil demo exemplifying how to draw a path (maybe in figma) and tie it to an image to get this effect, maintaining responsiveness, that would be really valuable. Thanks a bunch for the great tidbits you keep offering without all the "You need to know this to be a web developer" clickbait!
@ahmadhassan5680
@ahmadhassan5680 3 жыл бұрын
thank you kevin.
@maelstrom57
@maelstrom57 3 жыл бұрын
I'm so using on my next project, thanks Kev
@jenniferward6821
@jenniferward6821 3 жыл бұрын
my hero
@Astras-Stargate
@Astras-Stargate 3 жыл бұрын
Thanks Kevin!
@KevinPowell
@KevinPowell 3 жыл бұрын
You're welcome 😊
@js-swift
@js-swift 3 жыл бұрын
Thanks a lot Sir because you always update me to become better in css 🍔 🍔 🍔 🍔 🍔
@davispeixoto
@davispeixoto 3 жыл бұрын
This is awesome! Thanks
@wolfenrico
@wolfenrico Жыл бұрын
This is great!!!! Thanks!
@shayanfaghihi
@shayanfaghihi 3 жыл бұрын
You are amazing Kevin. What's the application you use for recording your desktop?
@DenisTRUFFAUT
@DenisTRUFFAUT 2 жыл бұрын
Awesome !
@brummyninja
@brummyninja 2 жыл бұрын
I stumbled across this after pondering how to do something similar with images
@pandabike3826
@pandabike3826 3 жыл бұрын
Amazing! Thank you!
@KevinPowell
@KevinPowell 3 жыл бұрын
You're welcome 😊
@pallavisinghchandansingh9203
@pallavisinghchandansingh9203 3 жыл бұрын
Thank you very much sir I am a child and you really helped me
@snakemanluffy7645
@snakemanluffy7645 3 жыл бұрын
wow cool property :D
@rkd-me
@rkd-me 3 жыл бұрын
Woah, didnt know about flow root, would use clearfix instead, thanks!
@utkarshagrawal3640
@utkarshagrawal3640 3 жыл бұрын
According to u what is the best way of showing a drop-down list ??
@manthkumar1094
@manthkumar1094 3 жыл бұрын
really amazing video.
@travezripley
@travezripley 3 жыл бұрын
Thank kev!!
@MightyHuff
@MightyHuff 5 ай бұрын
Is there a maximum number of lines of text for this to work as I managed to get one to float right with shape but when I try to float left it either does nothing or just move the subsequent lines of text away. Any idea as to why this is?
@francescotagliavento8081
@francescotagliavento8081 3 жыл бұрын
when are you going to do a video about positing?
@KeyObserver1
@KeyObserver1 Жыл бұрын
Hello Kevin. Your video is really helpful. I have managed to use the "shape-outside: circle ();" command in my CSS file on Notepad. However, when I used the "shape-outside: url();" command, nothing changed, that is, my text is still not wrapping around my irregular image. Any suggestions?
@JamesCoyle95
@JamesCoyle95 3 жыл бұрын
With your last example, if the text is taller than the image, how do you get the image to stick to the bottom right of the container?
@chhavimanichoubey9437
@chhavimanichoubey9437 3 жыл бұрын
woah latest magic tricks
@somnvm37
@somnvm37 3 жыл бұрын
0:57 soup image, of a lemon, right?
@KevinPowell
@KevinPowell 3 жыл бұрын
Pretty sure it's some soup :)
@mohammadnoushadsiddiqui4786
@mohammadnoushadsiddiqui4786 3 жыл бұрын
Which IDE is best for html css and JS right now m using vs code m thinking to switch to webstorm coz vs code lags sometime when there is lot of Sass files there
@KevinPowell
@KevinPowell 3 жыл бұрын
What are you using to compile the Sass? I've never run into an issue myself.
@mohammadnoushadsiddiqui4786
@mohammadnoushadsiddiqui4786 3 жыл бұрын
@@KevinPowell live Sass compiler extension sir after the latest update of vs I encountered this problem sir 😅
@saadamehdi2848
@saadamehdi2848 Жыл бұрын
There's a big issue. How does this work witih a figure element (I need figcaptions) ? It doesn't... shape-outside only applies to img
@aminedev_07
@aminedev_07 3 жыл бұрын
hey! i hope the next video would be designing a thumbnail with css
@KevinPowell
@KevinPowell 3 жыл бұрын
Like my YT thumbnails? I still use Photoshop for that 😅
@aminedev_07
@aminedev_07 3 жыл бұрын
@@KevinPowell ik just like a new idea or smth
@thedacian123
@thedacian123 2 жыл бұрын
Why you did not get rid of 'float:left'?
@nickwoodward819
@nickwoodward819 27 күн бұрын
Anyone know if it's possible to do this with say 4 lines of text and have the image and text both vertically aligned?
@r-i-ch
@r-i-ch 3 жыл бұрын
I always wonder why you don't use clip-paths/shapes in your CSS Battles.
@KevinPowell
@KevinPowell 3 жыл бұрын
Writing them out and getting the right shape in under 10 minutes wouldn't work well for me 😅
@rathernotdisclose8064
@rathernotdisclose8064 3 жыл бұрын
Awesome
@KevinPowell
@KevinPowell 3 жыл бұрын
Glad you enjoyed it
@Jaseinatl
@Jaseinatl 2 жыл бұрын
Can you only do this with image elements or could you use the shape features to wrap around, say a headline?
@KevinPowell
@KevinPowell 2 жыл бұрын
Pretty sure it only works with images that have transparency. You can do it with SVGs as well, or provide it with a different clip path, say, based on an SVG, so you could simulate it for text, but seems like a lot of work.
@craigmillerer
@craigmillerer 3 жыл бұрын
Can you animate/transition shape-outside?
@techtipsuk
@techtipsuk 3 жыл бұрын
Could just add some white space in your image to get around that constrain.
@JOEL-nn8fk
@JOEL-nn8fk 3 жыл бұрын
Can't seem to get the shape-outside: url('path'); to work -- it still wraps like an old school float. Help....
@ayoreis
@ayoreis 3 жыл бұрын
Ha ha ha 😀 I use that plant image as my desktop background.
@GlennPhilp
@GlennPhilp 3 жыл бұрын
How would you go about implementing this for a CMS? The struggle is to implement something like this requires developer skills as each image can be different in size and shape. For developer pages it is fun and relatively easy.
@pijusmilinis2260
@pijusmilinis2260 3 жыл бұрын
Any idea, why shape-outside is not working particularly on chrome if the text has a property of display flex?
@tomvoltz7506
@tomvoltz7506 3 жыл бұрын
Hi Kevin, I have a multicolumn p-tag (margin: 0 auto; column-width: 20em;) Unfortunately wrapping the text on a circular image won't work with that. Is there a work around? Thanks
@janemig
@janemig 3 жыл бұрын
Hi Kevin, Does it only work with webp images? I'm using a png with a transparent bkgd but it's not working. Thanks!
@joaomatos1144
@joaomatos1144 3 жыл бұрын
API by Day IPA by Night hahah, nice once!
@itzikca
@itzikca 3 жыл бұрын
You dont have that in chrome (the visualization thing) ? Because i usually develop in chrome...
@KevinPowell
@KevinPowell 3 жыл бұрын
I'd strongly suggest Firefox for CSS work. Much better dev tools when it comes to CSS.
@arunsp767
@arunsp767 3 жыл бұрын
So shape-outside works only inside?
@rannyarcher29
@rannyarcher29 3 жыл бұрын
plz we want how to put a border to inormal shapes 😄😄
@ayoreis
@ayoreis 3 жыл бұрын
Use a filter whit the drop-shadow() CSS function whit no blur and spread
@josvelema2362
@josvelema2362 3 жыл бұрын
@@ayoreis nice one 1 combined it with a box shadow and turned a div into a neon sign :O :D
@kuntaldas2843
@kuntaldas2843 3 жыл бұрын
totally forgot "float" still exists
@dankierson
@dankierson 3 жыл бұрын
Try making a price list without float.
@dankierson
@dankierson 3 жыл бұрын
@Danny Kirkham One with varying amounts of periods between each item and its price, with the prices all aligned in one vertical line like here www.speediwash.ie/prices.html ? If you have a link to an example of this, please provide it.
@98toxic1
@98toxic1 3 жыл бұрын
Where can I buy that shirt?
@KevinPowell
@KevinPowell 3 жыл бұрын
The store I bought it from has closed sadly, but if you do a search for it, it looks like it's all over the place anyway :)
@haythamkenway1561
@haythamkenway1561 3 жыл бұрын
Hey Kevin do you have tutorial about API ?
@KevinPowell
@KevinPowell 3 жыл бұрын
No, I don't. Anything specific you're after? There is one on FreeCodeCamp's channel that is awesome.
@haythamkenway1561
@haythamkenway1561 3 жыл бұрын
@@KevinPowell I was looking for some API Lesson because I heard just front end and html , css , js , etc ... is not enough. some people told me that I must learn about something like RestAPI. what do you think about that? is it real?
@Ostap1974
@Ostap1974 3 жыл бұрын
interesting that it includes margin in the playground.
@KevinPowell
@KevinPowell 3 жыл бұрын
I was pleasantly surprised when I discovered that :)
@huaweitrainingsafrica3742
@huaweitrainingsafrica3742 Жыл бұрын
For this to work, I think the image has to be the first child. I was working with a design that required the image to be second child (that is after the text) and wasn't working. Until I moved the image before the text. Then gave my image "float:right;" style. If anyone has an alternative workaround, please help. DISCLAIMER; I am not really good with floats.
@marcindomanski5654
@marcindomanski5654 3 жыл бұрын
What about situation, when I have one image with bg and other with transparent bg, and i want use this transparent image for create clip shape? Shoul I create this transparent image with area filled with 0.00001 alpha?
@MR-su4di
@MR-su4di 3 жыл бұрын
I wonder if simply just passing the clipped image to shape-outside url won't do the work?
@KevinPowell
@KevinPowell 3 жыл бұрын
it wouldn't need an alpha at all? Or, don't put it as a background image? If you float the image, but then have the shape-outside url to the other one, it'll follow it's path, even on the other image.
@anb1142
@anb1142 3 жыл бұрын
What's "IPA"
@dankierson
@dankierson 3 жыл бұрын
Floats without clearfix, welcome aboard!
@chang112x
@chang112x 3 жыл бұрын
This is black magick.
@RishavPlayz2007
@RishavPlayz2007 3 жыл бұрын
3rd comment! 8th like! BTW super cool content 😊😄🤗
@johndelilo6038
@johndelilo6038 3 жыл бұрын
1st comment
Front-end dev reacts to mind-blowing Codepens
21:25
Kevin Powell
Рет қаралды 2,1 МЛН
You can do that with margins?
14:40
Kevin Powell
Рет қаралды 189 М.
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
5 super useful CSS properties that don't get enough attention
16:23
Kevin Powell
Рет қаралды 150 М.
min(), max(), and clamp() are CSS magic!
18:12
Kevin Powell
Рет қаралды 304 М.
My top 5 most popular front-end tips
22:07
Kevin Powell
Рет қаралды 74 М.
3 modern CSS techniques for responsive design
14:32
Kevin Powell
Рет қаралды 217 М.
My best CSS tips from 2024
16:55
Kevin Powell
Рет қаралды 26 М.
The Easy Way to Design Top Tier Websites
11:54
Sajid
Рет қаралды 723 М.
The Secret Science of Perfect Spacing
9:40
Chainlift
Рет қаралды 483 М.
Learn CSS Grid the easy way
37:04
Kevin Powell
Рет қаралды 953 М.
I promise this story about fonts is interesting
29:35
struthless
Рет қаралды 1,9 МЛН
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.