No video

Controlling background-images | CSS Tutorial

  Рет қаралды 377,586

Kevin Powell

Kevin Powell

Күн бұрын

Пікірлер: 300
@abdelmonemnaceur7776
@abdelmonemnaceur7776 3 жыл бұрын
Best CSS teacher ever!
@christianaltan4913
@christianaltan4913 3 жыл бұрын
confirming!
@paradox2k604
@paradox2k604 3 жыл бұрын
no man its Tayfun Erbilen in other words PROTOTURK :)
@bodhimisael5037
@bodhimisael5037 3 жыл бұрын
i dont mean to be so off topic but does someone know of a way to get back into an Instagram account? I was dumb forgot the account password. I would love any assistance you can give me
@rohanjimmy3510
@rohanjimmy3510 3 жыл бұрын
@Bodhi Misael instablaster =)
@bodhimisael5037
@bodhimisael5037 3 жыл бұрын
@Rohan Jimmy thanks so much for your reply. I got to the site on google and Im waiting for the hacking stuff atm. Seems to take quite some time so I will get back to you later with my results.
@KieCodes
@KieCodes 3 жыл бұрын
So many nice tricks in one video. That's what I call adding value! Great job!
@KevinPowell
@KevinPowell 3 жыл бұрын
Thanks, glad you enjoyed it :D
@TheElkster
@TheElkster 3 жыл бұрын
I've struggled with background image placement for ages and have faffed around and wasted so much time gettimg them to look right when also trying to be responsive....This short tutorial has helped me no end! Thanks Kevin!!!
@DumbSkippy
@DumbSkippy 3 жыл бұрын
Oh crap. I spent a night wondering why the image wouldn't display in the bg... It was an empty div. Thanks Kev. I love your stuff!!!
@abdula5272
@abdula5272 3 жыл бұрын
The king of css dropped another masterpiece, thank you so much ❤
@soewaiyanaung
@soewaiyanaung 3 жыл бұрын
I was looking for this. Very helpful to me. Love your explaining.
@niklassoderberg2168
@niklassoderberg2168 3 жыл бұрын
I started watching you 5-6 weeks ago because you had a great video about a thing i needed to know then. Now i just watch because its fun and interesting. Nice vid Kevin. :D
@KevinPowell
@KevinPowell 3 жыл бұрын
So glad that you're sticking around and enjoying the content!
@asfets
@asfets 3 ай бұрын
Thank you so much for this tutorial, i was needing precise background image positioning. Always something to learn from you. The best CSS teacher indeed!
@ignaciosalia1952
@ignaciosalia1952 3 жыл бұрын
This just help in a project for an interview, thank you
@KevinPowell
@KevinPowell 3 жыл бұрын
Awesome!
@jlycurgus3244
@jlycurgus3244 2 жыл бұрын
I appreciate this briefest of overviews! Thank you! I'm a streamer who knows NOTHING about programming! Lol! Also! I love your outro so much that I've subscribed to your channel "Don't forget to make your corner of the internet just a little more awesome!" LOVE IT!!! SUBSCRIBED!
@abicinemafood
@abicinemafood 3 жыл бұрын
I never get bored while watching your videos. They are really fun!
@SwarupUsare
@SwarupUsare 3 жыл бұрын
big Fan of Kevin Powell he doing smart work for us -- "LOVE FROM INDIA"
@VirendraBG
@VirendraBG Жыл бұрын
Where were you all these years? Such an awesome teacher you are! Respect from INDIA. 🙏🏻
@daveskye
@daveskye 3 жыл бұрын
My Request: Custom Fonts Where to get fonts. Storing them on the website’s own server (for fastest and most reliable loading) and which font files types should be used for full browser support. Then how to setup with CSS. I can do this, but it would be good see best practice to check if I could do it a better way.
@segsfault
@segsfault 3 жыл бұрын
why so much informative videos have so much less views, Sir you're the best teacher
@shishirtiwari6484
@shishirtiwari6484 3 жыл бұрын
Me : Kevin you dropped something Kevin : what ? Me : A Masterpiece
@pramodkumarrana8178
@pramodkumarrana8178 2 жыл бұрын
Best class of the year ✨
@lillithdove2146
@lillithdove2146 2 жыл бұрын
I am in my early stages of learning. You definitely were a life saver I stumbled upon, your videos explain the process so clearly! Thank you!
@pcrackenhead
@pcrackenhead 3 жыл бұрын
Something cool I did with background images recently uses a bunch of the things you talked about here. I had a design where there were borders on elements that didn't go the entire width of the container. So instead of using pseudo-elements, or border image I used linear-gradient as a background, and used background-size to make it not go the full width of the box. Something like: background-image: linear-gradient(black, black); background-position: bottom left; background-size: 60% 2px; background-repeat: no-repeat; Now no matter how big the box is, it'll have what looks like a border going partway through the element. You can also combine it with multiple background images, so there's one partial border on the left, and one on the bottom.
@KevinPowell
@KevinPowell 3 жыл бұрын
Cool idea!
@abdula5272
@abdula5272 3 жыл бұрын
This is the course I have been looking for from a very long time, love your videos 💛
@andreainvernizzi8510
@andreainvernizzi8510 2 жыл бұрын
I am onto an assignment and I found this content very helpfull, very well explained with a clear pronunciation. Thank you Kevin
@avroml
@avroml 3 жыл бұрын
Excellent content as always, Kevin. Thanks mate!
@MzTeeL
@MzTeeL 2 жыл бұрын
Thank you so much! The level of frustration I’ve had for weeks was resolved within the first 3:11 of your video 💆🏾‍♀️
@CarlitoeGames
@CarlitoeGames Жыл бұрын
This was just *Chefs Kiss* amazing. hitting all the buttons on your channel because of this.
@nitram_nosnibor
@nitram_nosnibor 3 жыл бұрын
Another SUPERB video there Kevin, and another one for my CSS toolbox - thank you.
@deanhantzis9630
@deanhantzis9630 2 жыл бұрын
Nice pace and plethora of examples. Excellent tutorial. Thanks.
@rperez4852
@rperez4852 Жыл бұрын
This video came right on time (after cracking my head for a few hours). Thanks Kevin!
@dankierson
@dankierson 3 жыл бұрын
Another gem, KP. I was hoping you'd say something about sprites (big images made by tiling all normal ones - makes for quicker loading of images from the web server) and their manipulation.
@nro337
@nro337 3 жыл бұрын
Thank you for the detail of this video. This is really fascinating!
@cerealrakist7360
@cerealrakist7360 3 жыл бұрын
I’m struggling with controlling a background video. You’re always close to my needs every show !!!! Css guru right here everybody🙌🏻 !! Oh @Kevin Powell btw 0.75x is my sweet spot when you’re zooming. It’s like your my kinda normal then lol. Otherwise I have to go drink 3 cups of coffee and then tell my dog to hold my beer I’m going for it on normal speed lol .. ty Kevin for your help and hard work..
@wizhippo
@wizhippo 3 жыл бұрын
Layering backgrounds can be fun. How about adding the common image overlay without a pseudo element or a dedicated overlay element.
@ss4717
@ss4717 3 жыл бұрын
WOW you are playing the hits this month!!! don't stop thank you!
@SymyonYY
@SymyonYY 2 жыл бұрын
One thing I will add in the video to be complete is how percentage works differently than lengths (px, em etc). In that the anchoring point of the image is different, kinda floating with every percentage change. It's an important enough information that may confuse a lot of people at first.
@cholst1
@cholst1 2 жыл бұрын
So not defining position for each of the background layers was why the background image and my gradiant layers would move out of wack. Finally! Thank you! Haha.
@rileypaulsen
@rileypaulsen 3 жыл бұрын
Where in the world has that second offset property for background-position been my entire career‽ Amazing.
@KevinPowell
@KevinPowell 3 жыл бұрын
I was *so* happy when I found out about it, lol. I just wish it would work based off 'center' as well.
@hcjorgensen
@hcjorgensen 3 жыл бұрын
A video suggestion: methods for guaranteeing sufficiently contrasting text on top of images. (given any image) This might entail for example: - Simple background-color in text element - background image overlaid with background gradients overlaid with text - careful use of css filter() ...With notes on the limitations of each method.
@KevinPowell
@KevinPowell 3 жыл бұрын
Thanks for the suggestion :)
@bleulola
@bleulola 3 жыл бұрын
Thank you so much Kevin!!! Indeed it would be nice, if there is even more content with background-images such as background-attachment. Take care
@movingforwardwithahad317
@movingforwardwithahad317 3 жыл бұрын
Thank You for saving loads of web-surfing time. Really generous and useful content.
@OrincyWhyteDesigns
@OrincyWhyteDesigns 2 жыл бұрын
You are such a good teacher !!! Holy shyt 👏🏾👏🏾👏🏾👏🏾👏🏾
@robbiegeiss7090
@robbiegeiss7090 Жыл бұрын
you're so helpful and easy to understand, i appreciate you!
@952a259
@952a259 11 ай бұрын
Kevin, thank you so much for your CSS lessons!
@dr__ey
@dr__ey 2 жыл бұрын
this was such a great video as well !! thank you Kevin
@cerealrakist7360
@cerealrakist7360 3 жыл бұрын
Omg me at 1:52 👀🥴🤯🤦🏻‍♀️ I can’t believe it was that easy all along ! Lol
@blackcatdev
@blackcatdev 3 жыл бұрын
Hi Kevin, as always, thank you for great video! It would be cool if you can also show some examples how to deal with multiple fullscreen backgrounds. E.g. build some simple website with few text containers and add 3-4 1920x1080 backgrounds one below the other (or some big images in different sizes to add a bit of complexity) and then show how to control background and text container on responsive website.
@KevinPowell
@KevinPowell 3 жыл бұрын
Thanks for the suggestion! Could be fun, sounds like something maybe with scroll-snap type stuff could be useful.
@srishtichauhan2955
@srishtichauhan2955 2 жыл бұрын
Thank you , was struggling with some concepts while working, you made it easy
@skeetpurple2531
@skeetpurple2531 3 жыл бұрын
Thanks for all kevin, I really appreciate your content
@joshuamensah9309
@joshuamensah9309 9 ай бұрын
Absolute legend 👑
@aglowkeys
@aglowkeys 3 жыл бұрын
Thank you Kevin! This was great. Could it be possible for you to make a video talking about accessibility? I believe you said you aren't an expert on it, but maybe you could teach us some basic things regarding aria roles and how screen readers work!
@KevinPowell
@KevinPowell 3 жыл бұрын
I've got something in the works with someone who is an expert :)
@gideonokokoro5024
@gideonokokoro5024 3 жыл бұрын
Your teaching skills is so precise and coherent... Thank you so much!
@mareleene
@mareleene 3 жыл бұрын
You are the best programmer bro!, keep it up and so nice bro!
@aebek1413
@aebek1413 2 жыл бұрын
I really like you kevin you are an amazing teacher
@nataliabujnowicz1454
@nataliabujnowicz1454 3 жыл бұрын
Many thanks for this video, many strange issues with background-images are clear now. BTW, you look awesome in these glasses: D
@KevinPowell
@KevinPowell 3 жыл бұрын
Glad you liked the video, and the glasses 😃
@BanglaAudioBookbyZahan
@BanglaAudioBookbyZahan 2 жыл бұрын
Wow amazing. Needed this.
@josephgarza5973
@josephgarza5973 2 жыл бұрын
Pretty cool tutorial. Thank you very much for dedicating some time to helping other newbies.
@work9167
@work9167 2 жыл бұрын
Great! Your video helped me a lot.
@ChrisMochinskiMusic
@ChrisMochinskiMusic 2 жыл бұрын
Thanks for always being so dang helpful!
@kopilkaiser8991
@kopilkaiser8991 20 күн бұрын
Liked and subscribed. Your video was so good. You deserve it 🔥👨‍🚒
@ricardonog1
@ricardonog1 3 жыл бұрын
Learned so much watching your content, thanks for your videos
@NanogalaxyOrgMedia
@NanogalaxyOrgMedia 3 жыл бұрын
That is awesome! Thanks for these wonderful tutorials!
@kamasahdickson1549
@kamasahdickson1549 2 жыл бұрын
Wow...very helpful content am looking forward for more helpful videos like this.....I think with this video i now can center svgs behind images to my liking.
@HigkeyRegarded007
@HigkeyRegarded007 2 жыл бұрын
This was so awesome. Thank you so much for this!
@jeffborges101
@jeffborges101 3 жыл бұрын
just got it Kevin . Great info. Thanks again
@colinjones8265
@colinjones8265 3 жыл бұрын
love love love LOVED this video
@AWM_2023
@AWM_2023 3 жыл бұрын
Thumbs up if you're Brazilian and thought it was fun to see the second imaged named "bandeirinha" (little flag). Those are typical littles flags of local folklore, called "bandeirinhas de São João". Thanks for the video, KP.
@coderamrin
@coderamrin 2 жыл бұрын
very helpful tutorial kevin. thanks for sharing
@globalfunseeker6733
@globalfunseeker6733 3 жыл бұрын
Another wonderful video. Thanks so much for your time and effort. Kevin, do you begin every project with a "base css" file that you apply to each and every project? For example, margin and box-size settings, etc., If so, can you recommend any? Thanks.
@FarhanaTasneemB
@FarhanaTasneemB 3 жыл бұрын
You are the best and your videos are life saver. ❤️
@Ignite_Your_Spark
@Ignite_Your_Spark 2 жыл бұрын
Thank you Kevin, super helpful content..👍🏽
@antonzhevchenko8489
@antonzhevchenko8489 Жыл бұрын
Hello Kevin! Do have any video how to manage modal window with form inside, with phone, email, name inputs
@owensieber1577
@owensieber1577 3 жыл бұрын
Thanks for great video my man.
@luisangelacunag9949
@luisangelacunag9949 Жыл бұрын
Muchas gracias amigo, me ayudaste para darle solución. ¡Saludos desde Perú!
@RubberDuckCoding
@RubberDuckCoding 2 жыл бұрын
VERY NICE!
@fasteditsyt
@fasteditsyt 6 ай бұрын
I come from the future, the year 2024 to say thank you for this excellent tutorial! This video helped save planet Earth from awfull looking webpages! 🐒
@codingwithlucy
@codingwithlucy 2 жыл бұрын
Thank you so much, this was really helpful :)
@AmandaLucaseu
@AmandaLucaseu 3 жыл бұрын
Great video Kevin, thanks 😊
@arthur9490
@arthur9490 2 жыл бұрын
Thank you so much! You helped me a ton.
@imjustaboredperson9116
@imjustaboredperson9116 3 ай бұрын
This helped me so much!!!
@rajkiranchaudhary8769
@rajkiranchaudhary8769 3 жыл бұрын
Thank you. It is a wonderful tutorial..
@WadieGamer
@WadieGamer Жыл бұрын
Note to myself: I completely watched the video.
@ComesThenGoes75
@ComesThenGoes75 3 жыл бұрын
Hello Kevin. I would love to find out how to control the scrolling behavior on parallax images. I have not worked with parallax a lot, but I am noticing where the view of the image starts at the very bottom and as you scroll down the page, the view of the image moves from the bottom to the top. I would prefer the opposite to happen. How do you recommend reversing the current scrolling behavior?
@francolamattina1803
@francolamattina1803 3 жыл бұрын
God of CSS
@braveitor
@braveitor 3 жыл бұрын
Nice explanations as always, Kevin. As a suggestion, although I've been working with css for a few years, in one project I had to finish for a client not so long ago, they were using border-image for making quite ellaborated frames for floating content, just using one image, taking part of that image to repeat horizontally and vertically, and also using some parts of the image as decoration. I had never used or seen something like that, but it was really useful for having just one image for variable sized floating info messages. Maybe you could do a video about it. Thanks!
@raquelcampos2096
@raquelcampos2096 Жыл бұрын
Thanks for this tutorial.
@XerosXIII
@XerosXIII 3 жыл бұрын
dont you love it when a kickass person come flip your whole css-background world around ?
@danielChibuogwu
@danielChibuogwu Жыл бұрын
love this guy😂💯
@carolmckay5152
@carolmckay5152 3 жыл бұрын
This is cool. Thanks dude.
@MyDpop
@MyDpop 3 жыл бұрын
I still remember when I found out that "right 10px" works! 😅 What's your take on *border-image* ? There is even a border-image-outset property as a note to your last video with outline!
@KevinPowell
@KevinPowell 3 жыл бұрын
I haven't used a border-image in soooo long. Be interesting to look for some good use cases
@MyDpop
@MyDpop 3 жыл бұрын
I'm afraid there aren't any, except maybe for an antique baroque photo-realistic picture frame. 🖼
@carolmckay5152
@carolmckay5152 3 жыл бұрын
@Daniel @@KevinPowell I used border-image on this website, eg the frame for the video on this page adelaidebiplanes.com.au/about-us/
@satyamdograreallife
@satyamdograreallife Жыл бұрын
Hey Kev, when I define my backgorund position, it ain't going center or top center. But when I write center it moves down a little from the left corner of the page. Nor I've put any margin or padding. Can you explain what's happening. Although Dimensions of the image are 7509 Pixels * 5609 Pixels. could that be an issue ??
@grasshopperweb
@grasshopperweb 5 ай бұрын
I have a situation that I couldn't quite figure out. I have an image where there are two faces in it, that are not centered. I don't want to crop the image to center the faces as at different screen sizes, the entire image does get used. I want those faces to be centered in the div at all sizes but I couldn't quite get it. I used percentages with background-position to try to create a "middle point" on their faces but it doesn't seem to keep them in the middle at all times. Am I thinking of this in the wrong way? Is this feasible?
@mercymerlin927
@mercymerlin927 5 ай бұрын
it was very helpful, sir🥰
@minthukyaw8451
@minthukyaw8451 3 жыл бұрын
keep the great work thank u
@DANIAL_GH
@DANIAL_GH 2 жыл бұрын
Thank you so much for this wonderful video You solved my problem😍😍😍😍😍😍👍👍👍👍👌👌👌👌✨✨
@PixieSpright
@PixieSpright 3 жыл бұрын
"There are many bosses, but only one king" - Bruce Springsteen
@silviadl136
@silviadl136 3 жыл бұрын
Great video Kevin! Could it be possible to make a video about opacity in the background images in order to read correctly the text? Thank you!!
@upwlqwp
@upwlqwp Жыл бұрын
Thank you so much You really help me
@Abhianiket
@Abhianiket Жыл бұрын
Thank you so much sir ❤😍
@NotKyleChicago
@NotKyleChicago 6 күн бұрын
Would "20px right 50px" give the same result as "top 20px right 50px"?
@andrew.schaeffer4032
@andrew.schaeffer4032 2 жыл бұрын
Thanks for the great video! Question - Is there a way to take an image that is background: cover and zoom in on it with css? Thanks!
@GretSeat
@GretSeat Жыл бұрын
But how do you just prevent the image from getting cropped in the first place? I want a background image to be resize with the page, and not have to worry about cropping and losing "focal points" and all that stuff.
@bimaltwayana2058
@bimaltwayana2058 2 жыл бұрын
This is awesome
Avoid These 5 Awful CSS Mistakes
20:42
Kevin Powell
Рет қаралды 192 М.
🩷🩵VS👿
00:38
ISSEI / いっせい
Рет қаралды 23 МЛН
Parenting hacks and gadgets against mosquitoes 🦟👶
00:21
Let's GLOW!
Рет қаралды 13 МЛН
Идеально повторил? Хотите вторую часть?
00:13
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 18 МЛН
Unveiling my winning secret to defeating Maxim!😎| Free Fire Official
00:14
Garena Free Fire Global
Рет қаралды 7 МЛН
Avoid these 5 beginner CSS mistakes
21:38
Kevin Powell
Рет қаралды 81 М.
Top 10 CSS One Liners That Will Blow Your Mind
13:34
developedbyed
Рет қаралды 942 М.
Using CSS custom properties like this is a waste
16:12
Kevin Powell
Рет қаралды 167 М.
CSS Tips And Tricks I Wish I Knew Before
12:12
Lama Dev
Рет қаралды 468 М.
Make Your Site Lightning Fast With Responsive Images
14:13
Web Dev Simplified
Рет қаралды 85 М.
5 CSS mistakes that I see way too often
19:03
Kevin Powell
Рет қаралды 359 М.
Learn CSS Positioning Quickly With A Real World Example
8:32
Slaying The Dragon
Рет қаралды 637 М.
Award Winning Animation With Only 20 Lines Of CSS?
6:59
Hyperplexed
Рет қаралды 1,7 МЛН
These CSS PRO Tips & Tricks Will Blow Your Mind!
8:48
Coding2GO
Рет қаралды 245 М.
🩷🩵VS👿
00:38
ISSEI / いっせい
Рет қаралды 23 МЛН