Just wanted to say @kevin powell I've been browsing through your channel for the past few days, spending a few hours at a time and your content is so good I just don't even know where to start and where to keep going, sometimes. Thanks for your amazing work, it helps a ton!
@KevinPowell4 жыл бұрын
Glad that you're enjoying my content! 😊
@eddykagia42123 жыл бұрын
This blew my mind. So subtle yet so effective
@trainerkellysnetwork3 жыл бұрын
I know this video is old, but I want to say THANK YOU! I struggled for hours trying to figure out how to align a button inside of a DIV element that was still responsive and I could not figure out how to do it. Google wasn't really showing me anything that was helpful. All it took was watching this video and being reminded that the parent element (in this case, my DIV) needed positioning itself. 😭 Thank you SO much for making this very clear tutorial! Thank you, thank you, THANK YOU!!!
@darshanpandya10872 жыл бұрын
thank you kevin for all the amazing videos you share , i try to watch as soon as i got notified and try to use on my projects too.
@nlorens3 жыл бұрын
Thank you Kevin for explaining the logic behind every step, it is super helpful to understand the concept. I really enjoyed trying out this fun project :)
@seanpheneger66326 жыл бұрын
Kevin, you know in Emmett you can type loremX (where x is the number of words you want it to generate) i.e. lorem10 and then tab and emmett will auto generate 10 lorem words instead of saving lorem bits on a different doc to cut and paste. p.s. love the content. always learn something new every video you put out
@KevinPowell6 жыл бұрын
It never EVER works for me, it always gives me a tag instead! I've used it in Atom, VS Code and Codepen and I wish it would work SOOO much, haha. I think I had it work once, and I don't know what I did!
@ShotgunChoda6 жыл бұрын
Don't know if you just made a typo here, but it's lorEm, not lorUm, maybe that's what's tripping you up.
@barelyviable50046 жыл бұрын
also it doesn't work when Capitalized, it has to lowercase, sometimes I mess up there =p
@wshah57616 жыл бұрын
type lorem5 and press tab, it should work :-D, I also struggled with it before
@aditnetral5 жыл бұрын
@@KevinPowell wow
@sage52963 жыл бұрын
The content on this channel is great, I'm learning CSS on my own as I'm working through CSSBattles, and this is a really nice way to augment that while also learning the proper way to do things to balance out any bad habits I'm forming with CSSBattles!
@yetanotherusername126 жыл бұрын
Your videos always clear up whatever impossible mess I've created in my code as I stumble through learning web coding. Thanks!
@KevinPowell6 жыл бұрын
Haha, glad I'm able to help out a little :)
@nickbrown67543 жыл бұрын
I've been struggling all day with the positioning of a responsive video that was suppose to be about 1/3 of the screen wide and sit above the fold in the bottom right on all screen sizes above 992px wide. After watching this video the solution seems so obvious and I can't believe I was being so thick. Thank you for kicking my brain back into gear 🤘
@Devendrakr633 жыл бұрын
He is King of CSS.
@A_Lesser_Man5 жыл бұрын
that looked great! yes, you could DRY it up a bit. and i had no idea you could do THAT to a shadow! wow. neat.
@matthewashworth49924 жыл бұрын
Thank you K-Pow love your videos, they make my corner of the web nicer, You are a star!
@Seantf123454 жыл бұрын
Awesome showcase of the absolute position! Thanks for this a real inspiration!
@sivaganesh4489 Жыл бұрын
Kevin, GOAT of css
@nizamuddinshaikh31855 жыл бұрын
Topic excellently explained! Now, I am clear about position : absolute. Thank you, KP. 😃
@whatsaguygottado26695 жыл бұрын
Interesting video! Gave me all kinds of things to think about w/ positioning. Keep-up the good work!
@gilmoretj6 жыл бұрын
Kevin, I am a big fan of your videos, especially the Five-minute Fridays. One comment regarding CSS positioning: Absolute positioning is not dependent on an ancestor having a position property but on having an ancestor defining a position other than the default of static. Keep up the good work.
@Alessandro-nq3tm5 жыл бұрын
Amazing tutorial mate! So useful
@westfield905 жыл бұрын
Thank you. Nothing like real world examples to explain this stuff.
@chinmaykumar79754 жыл бұрын
You made everything so much easy and clear . Thank you very much.
@TheElkster4 жыл бұрын
Really loved the use of z-index and creating layers - losing luminosity with other elements having an rgba background has always stumped me - but this now explains how to avoid it! Thanks Kevin! :)
@rofazayn6 жыл бұрын
Thank you Kevin, I love your videos.
@KevinPowell6 жыл бұрын
Not a problem, I'm glad to hear that you like them :D
@luizmelo86116 жыл бұрын
Thank you very much, sir! Your tutorials are awesome and to the point! I wish you the best!
@esraamohamed56012 жыл бұрын
Thank you so much for all you have done!
@sumitsahu23383 ай бұрын
Amazing content and teaching.
@miguelbm19892 жыл бұрын
I had to do an AB testing for my work. This video helped me finish it :) thank you so much
@thilakamn5754 жыл бұрын
Awesome presentation and Thank you
@ellaamaechi-qk9ol10 ай бұрын
i really learnt a lot from this
@christinejurewicz30576 жыл бұрын
Thanks Kevin, this really clarified some things regarding positioning
@KevinPowell6 жыл бұрын
Awesome, glad it helped Christine :)
@GeorgeFlorian126 жыл бұрын
Awesome video, man, like always ! As a total beginner I don't know when or where some code will work or not, like you the 'height' example in this video. There are a lot of tricks related to what will work and what will not depending on 'position' or 'display' or who knows what. I think that explaining "the missing link" (for me at least) would make for a great video. Or do you already have videos about that ? I haven't seen all of your video, obviously :))
@GeorgeFlorian126 жыл бұрын
Like, even here, in this video: the 'width' of the parent div is 40% and the 'height' and 'width' of the img are set at 100%,. The img has a 705 width/height, right ? So it's a square. Why did it change its aspect ratio and began looking like a rectangle ?
@KevinPowell6 жыл бұрын
Because CSS is really strange, lol. I'd love to make a missing link video, but that would most of CSS, lol. It's one of those things that, the more you use it the more you figure out the subtleties of it. As much as possible I try to get into these subtleties in my videos, but there are sooooo many! It can definitely be frustrating as you are learning, but you'll start figuring it out!
@davidmarcos36615 жыл бұрын
@@KevinPowell I was wondering the same issue about the aspect ratio of the image, I guess i'll have to move on and accept that CSS is strange, lmao
@franktielemans66246 жыл бұрын
Damn,, this was clever
@KevinPowell6 жыл бұрын
Glad you liked it!
@infosandfacts75364 жыл бұрын
Awesome stuff. Thanks a lot.
@Fliteska5 жыл бұрын
That was really cool, never thought of using pseudo elements for cutting through an element. The card looks like it could be a digital boarding pass
@mananwebandall12035 жыл бұрын
Very cool boss .... Just awesome explanation...👍👍👍
@zahidhossainarpo50434 жыл бұрын
these are awesome man..thanks a lot
@DuyenPhanLan3 жыл бұрын
Great content! Thanks
@DavidWyatt6 жыл бұрын
Excellent, as always! A great follow-up video would be writing the CSS that would allow this to degrade gracefully at mobile breakpoints. That's probably where most of us have the most problems.
@DavidWyatt6 жыл бұрын
I forked your original pen and added a breakpoint. Because your original CSS was so clean, it only took a few lines of code to make this card look great on mobile. Take a look at the modified pen codepen.io/designoneweb/pen/jKZbzW and let me know what you think. Keep up the great videos!
@KevinPowell6 жыл бұрын
I find it easier to design something more basic as the mobile one, and then add things and make it more complicated for larger screens, instead of stripping stuff away. But yeah, that's a good topic idea, though it does delve into design a lot as well, and making design decisions for different screen sizes.
@KevinPowell6 жыл бұрын
Sorry I hadn't seen the followup comment, KZbin had flagged it (because it had a link in it, I'm guessing). Really nice stuff, glad you took the time to do that, it looks great :)
@georgesmith30226 жыл бұрын
thanks kevin, interesting stuff definitely
@KevinPowell6 жыл бұрын
Thanks George :D
@MartinHAndersen5 жыл бұрын
Awesome, thanks again
@udarakasun6 жыл бұрын
Thanks kevin. It's cool
@nargesbayat2773 жыл бұрын
That is great!thank you very much
@nithinmuniraju44826 жыл бұрын
Even you too awesome. Nice teaching, all your tutorials makes me perfect of some topics. Thank you a lot 👍👍
@KevinPowell6 жыл бұрын
Thanks so much, I'm glad you're enjoying the tuts!
@monk3336 жыл бұрын
Nicely done!
@ElNicopewpew6 жыл бұрын
Love your videos, great job !
@KevinPowell6 жыл бұрын
Thanks a lot, glad you liked it :)
@CreativeSequence5 жыл бұрын
Great video very helpful
@Abhishek-tr4oi5 жыл бұрын
What a design awesome 😍
@boyacosweep2 жыл бұрын
Amazing!
@Diamonddrake4 жыл бұрын
Great tutorial!
@michajankowski36156 жыл бұрын
Cool example!
@KevinPowell6 жыл бұрын
Thanks :)
@davidepalombo21412 жыл бұрын
Thank you!
@jaimesastre63936 жыл бұрын
thank you, awesome ! really good explained!
@KevinPowell6 жыл бұрын
Thanks a lot, glad you liked it :)
@asdfghilal2 жыл бұрын
You are the best!
@ArturBrosig3 жыл бұрын
Awesome. On 10:25 you say that the border is 1px thick, but isn't it actually 2px thick? (1px left and 1px right)
@siriusgd47536 жыл бұрын
Very nice!
@KevinPowell6 жыл бұрын
Thanks :)
@heidischorlemmer44072 жыл бұрын
Hi Kevin, what haben I to do to get the sourcecode of your videos? Must I make a subscription ? You videos are so great .
@Honza4755 жыл бұрын
Liked and subbed. Very useful videos. Keep it up 👍
@AndrejDaiker6 жыл бұрын
Awesome!
@anuranjansrivastav98646 жыл бұрын
Great video...
@cindykee37195 жыл бұрын
Is z-index affected by parent and child positions? Or is it always global to the whole ? I was a little confused by the tweaks you did there. I am learning so much about CSS that I didn't know before with your videos. I am a full-stack developer and I have never studied CSS specifically. I just have kind of picked it up along the way. And I know enough that a beginner's CSS course would bore me just to fill in my gaps, so your videos are super-helpful for that gap-filling! And for advanced techniques. Thank you!
@joeldcanfield_spinhead5 жыл бұрын
I love seeing your designer mind at work. Re: the shadow on the left end, would it be feasible to add another element behind that bit, and put the box-shadow on that? That's my Photoshop cheat, so I'm curious how you might pull it off here. It'd really finish off the design.
@KevinPowell5 жыл бұрын
Really good point. We could add a second shadow onto that ::after element to pull it off :) - box-shadow: inset 12px 0 10px -10px rgba(0,0,0,.5), 20px 0 40px rgba(0,0,0,.25);
@mrMinstrel6 жыл бұрын
Very Nice...thanks!
@KevinPowell6 жыл бұрын
No problem at all!
@thedacian1233 жыл бұрын
Can you explain position absolute and overflow hidden of postionated parent,please.? I've seen some implemetation of slidders using this one.Thank you!
@boggeshzahim37135 жыл бұрын
This is so BADASS
@mohammedriyazuddin56496 жыл бұрын
you are awesome man...
@KevinPowell6 жыл бұрын
Thanks!
@varsharaorane6 жыл бұрын
very nice video
@MontyKsycki5 жыл бұрын
Thank You!!!! :)
@cannabisanomaly2 жыл бұрын
Hey Kevin, thank you SO much for all of your work; you're singlehandedly teaching me how to be a web developer. I noticed something pretty odd when it comes to the 1px solid white border you've done for the card decoration. I'm using chrome and I noticed that when adjusting the browser window, the 1px border seems to sometimes appear not solid. But when adjusting the window some more, it goes in and out from looking to solid to looking like there's some space within the border, almost like it's two parallel lines. Do you have any idea what is causing that?
@diegounanue5 жыл бұрын
Can you do the same with flex?
@bijintsy6 жыл бұрын
awsome!!!
@workingTchr2 жыл бұрын
I needed a menu type element and all the pre-made code I found was way too complex (trying to be too many things) so I had to make my own. Absolute position is used in all of the menu controls so they can overlap content they drop down over (like a Select). So that's what got me here: menus.
@Rocadamis3 жыл бұрын
So, how would you go about putting a shadow behind the yellow banner sticking out on either side? Maybe put a negative z-index box behind each one with a box-shadow?
@alenjose39033 жыл бұрын
how does the before and after work to create the border
@amyp.5755 жыл бұрын
why does the yellow on the outside on the right look like it's higher?
@nathancornwell14555 жыл бұрын
ever since i started doing Kevin's course on scrimba i just keep wanting to pause the video and look at the code lol
@amyp.5755 жыл бұрын
Same! And it's his only Scrimba which makes me sad! The CSS HTML one
@nathancornwell14555 жыл бұрын
@@amyp.575 indeed, I do hope to see him do more courses in the future. I wish he could do all his videos there instead of youtube but unfortunately thats not the way scrimba works....
@amyp.5755 жыл бұрын
@@nathancornwell1455 It's not? The only thing I know about Scrimba is that he was on it and the guy who tried to teach HTML was awful but this was after Kevin so I was comparing the two lol How do we talk him into making more?? Lol I can't learn from anyone else and I have tried and tried and tried! He has my future in his hands!! LOL
@nathancornwell14555 жыл бұрын
@@amyp.575 what i mean is how kevin uploads videos weekly on KZbin..i wish he could do that on scrimba....kevin put out a course on responsive web design with CSS/HTML but he hasn't put more videos up because thats not how scrimba is , he would have to make a whole new course i assume..but i wish he could have like his videos on animations, transforms, etc on scrimba so we could play around with those while we learn but for now we have his youtube videos , codepens, and github.
@joe-un1ky5 жыл бұрын
Damn, you're a CSS artist
@KevinPowell5 жыл бұрын
Thanks 😊
@mk98344 жыл бұрын
amazinggggg!
@Rebbelde4 жыл бұрын
Whats the keyboard hot key to autocomplete image tags and how you define width and height in source ? I tried it but it didn't work
@alexanderphilippovich30475 жыл бұрын
I mean the view of the picture, not changing the size. So Ican see the windows of the house for example.
@KashmirTechUniverse24322 жыл бұрын
Which things makes Css responsiveness ?
@pushpakgupta73965 жыл бұрын
but when i do position absolute on card body instead of position relative then the card body goes to top left of the window....but your card remained there only...pls someone explain
@alexanderphilippovich30475 жыл бұрын
Hi! Do you know how to move the omg picture a little to the right or top, by the x an y axis?
@joaoribeiro95755 жыл бұрын
Hi Kevin, I am still a bit confused, what is the difference between absolute and fixed when considering positioning? Thanks.
@vladmp55 жыл бұрын
the position fixed is like an absolute, but makes the div "fixed" to where you placed it, and even if you scroll down, the element won't move up. Hope i helped :)
@batucka14 жыл бұрын
Hi Kevin, great videos, thanks for everything. About this one, I have a question, how I can "activate" the links? I mean, with your example, if I want to put a link to google.com once the user click the image or text, the link doesn't work :( I was looking everywhere but with out any sucess, could you help me please?
@LawnCrack6 жыл бұрын
Killer!!!
@fjworkshop3 жыл бұрын
can anyone tell me why we didn't use right in the ::before and top in the ::after?
@geebee99singh6 жыл бұрын
Sir do you have your blog or something where i can ask you designing related questions.
@KevinPowell6 жыл бұрын
Sadly I don't. Could be something that I look into adding in the future though :)
@JimKernix3 жыл бұрын
Why is the body tag set to grid? And that the entire body is 100vh?
@KevinPowell3 жыл бұрын
Just to center the content for the demo :)
@webcodeexplainedYT4 жыл бұрын
How card pseudo element 'after' is getting rendered horizontal not vertical like 'before.
@Sayuiv4 жыл бұрын
Hi Rajender, Kevin put content: " "; that make it empy and then border: 1px solid white. At first you cannot see this border because you neither give them size or starting and finishing position. Defining left:3rem and right:3rem means that you want the border start a 3rem from the left and go to the right until 3rem, than with bottom: 1.5rem it is like giving a margin. So if you want the border vertical you define top and bottom, using only left or right for the horizontal alignment. If you want it horizontal you define left and right, using top or bottom for the vertical alignment. Hope it's clear.
@webcodeexplainedYT4 жыл бұрын
@@Sayuiv thanks for the reply. Its clear now 😌
@iancuvlad73684 жыл бұрын
Applications are countless I can mention dropdown, ripple, dialogs etc
@meew75715 жыл бұрын
I have face some problem when i use position absolute...In Every Break point the position of the content is moving.. What is the trick to position absolute content responsive in every Device
@KevinPowell5 жыл бұрын
Other than positioning it relative to the parent, there isn't much else we can do really.
@nave34116 жыл бұрын
thanks
@KevinPowell6 жыл бұрын
You're welcome :D
@mann36046 жыл бұрын
The class name totally depends on user right? or does card__image or card_image or cardImage or anything else makes any difference? I have seen a lot of people user _ in class names!
@KevinPowell6 жыл бұрын
The class names are 100% your choice, you can use any name you'd like :).
@anggamxfx4766 жыл бұрын
Da best keep it i love ur content
@KevinPowell6 жыл бұрын
Thanks :D
@ozzyfromspace3 жыл бұрын
Ozzy Explains: why am I watching this? *1 minute in* ... font-family: “Oswald”, sans-serif; @1:00 Say no more 😭😂
@blokche_dev6 жыл бұрын
Stylish! :)
@KevinPowell6 жыл бұрын
Thanks!
@laPas20246 жыл бұрын
nice
@KevinPowell6 жыл бұрын
Glad you liked it :)
@syediqbalahmed31765 жыл бұрын
good
@DrinkCola4 жыл бұрын
Dude ! We can do this card in Photoshop in a very easy way .
@jasonzhang28666 жыл бұрын
coool
@KevinPowell6 жыл бұрын
Glad you liked it Jason :)
@justgiz3 жыл бұрын
18:13 Why not just use a `right` prop? Does the exact same thing without fancy math.