Responsive Image Height CSS Tutorial

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

5-Minute Web Dev

5-Minute Web Dev

Күн бұрын

Пікірлер: 70
@mysterpluszak7953
@mysterpluszak7953 4 жыл бұрын
I was trying to solve this by myself for 2 hours and found solution nowhere else. Thanks a lot.
@myrainys
@myrainys 3 жыл бұрын
2 hours? I was looking for this 30 hours!
@ecophobic
@ecophobic 4 жыл бұрын
"the percentage value for padding is based off the parent element's width" thank you
@wlan2
@wlan2 5 жыл бұрын
Hi. Can you make a video about the same thing, but when you don't know what the image dimensions are? For a user uploaded image or something similar, you don't know what the ratio is or there are multiple, so you can't apply a "fix" padding.
@NelsonB007
@NelsonB007 5 жыл бұрын
thanks pal for the tip... I´ve been struggling with those images for quite a long time!
@marioecg
@marioecg 5 жыл бұрын
This is an epiphany! Thanks mate.
@positive.stories
@positive.stories 4 жыл бұрын
You are a Lifesaver! Amazing Tutorial!!
@MK-zf6or
@MK-zf6or 3 жыл бұрын
thanks so much, good vibes your way
@tusharsaini2801
@tusharsaini2801 3 жыл бұрын
Thanks you.. Really helpful.
@milindsankhe7734
@milindsankhe7734 3 жыл бұрын
Thanks this is helpful
@0lo20
@0lo20 2 жыл бұрын
Hello, im struggling with decreasing photo's height and width on my mobile version. I just want this photo to be proportionally smaller on mobile but to leave like it is on desktop version. Couldn't find any solution.. please reply! Thanks!
@darkraysha3927
@darkraysha3927 Жыл бұрын
Dankeschön war echt hilfreich
@HeartSoulLeake
@HeartSoulLeake 3 жыл бұрын
The image doesn't show. only the BG color
@ravihashimi3889
@ravihashimi3889 2 жыл бұрын
thank you
@orlamcnamee1982
@orlamcnamee1982 4 жыл бұрын
OH MY GOD THANK U
@ghostman2876
@ghostman2876 4 жыл бұрын
wow
@efexzium
@efexzium 3 жыл бұрын
bro great video but please open up a Patreon account so if u need a better mic people can donate to your channels patreon and u can start making better videos
@lycan2494
@lycan2494 2 жыл бұрын
ok that breathing is annoying asf ngl
@thirdstreetnorth
@thirdstreetnorth 3 жыл бұрын
I couldn't concentrate on the content because of your breathing and gasping... duuuuude this is to good to be busted by such a goofy thing. I hope you fix that, cheers
@noGFnoMONEY
@noGFnoMONEY 4 жыл бұрын
Finally i found this great tip. You're a genius
@johnm3229
@johnm3229 2 жыл бұрын
No source code? LOL
@John223
@John223 4 жыл бұрын
saved my ass very much. thank you
@CavanMitchell
@CavanMitchell 2 жыл бұрын
dude! this was the answer i was searching hours for! thks so much
@vaggelismanousakis6147
@vaggelismanousakis6147 3 жыл бұрын
So if i want to put an image to have "height:50%" of my browser at any time I implement it with your solution ? Thanks in advance!
@MrRedhawk16
@MrRedhawk16 5 жыл бұрын
Man you are Brilliant !
@kertosyt
@kertosyt Жыл бұрын
so my brain is furiously asking me right now , what if you want to , set an image height, at 100vh , and width at 100% of the container, but instead of letting the image stretch , you want to set the image to crop according to the size of the container , while respecting the aspect ratio, could it be done by loading a an image that is bigger than the container, set the center of it as the center of the container and have the container hide and show parts of the image as the size changes?
@Enn99999
@Enn99999 9 ай бұрын
oh my god, you are cool, this is what I have been tackling for more than 2 weeks. Thank you so much
@michaelhajny1348
@michaelhajny1348 4 жыл бұрын
Everything was helpful and I realy appriciated your work but try to work on your breath :)
@mrdj3z
@mrdj3z 4 жыл бұрын
Sounds like he has auto mic volume turned on and the mic volume spikes up during the brief moment between talking and breathing.
@TylerThomas
@TylerThomas Жыл бұрын
so basically padding-top: img(height) / img(width) Is there an auto for this?
@samamansaray8648
@samamansaray8648 4 жыл бұрын
That teaching breaks off my doubt. I learnt a lot. thank you
@itech40
@itech40 5 жыл бұрын
Great content keep it up. Clear neat fast
@BuckeyeDave1
@BuckeyeDave1 3 жыл бұрын
Fantastic and Thanks! Fixed the Banner I was working on. Appreciate your efforts sharing this info
@EGGFlower-
@EGGFlower- 5 жыл бұрын
thank you men, you save my time.
@atuc7750
@atuc7750 Жыл бұрын
Tks broo very much, it worked
@gagikavagyan9920
@gagikavagyan9920 4 жыл бұрын
Thank you it's very useful
@nahabiz
@nahabiz 6 жыл бұрын
Clear and concise! Thanks!
@vinayuttekar8735
@vinayuttekar8735 8 ай бұрын
best video on this topic!
@bensmith807
@bensmith807 4 жыл бұрын
mind is blown!
@habibiSD
@habibiSD 4 жыл бұрын
Amazing Job, big kudos
@SonGoku-pc7jl
@SonGoku-pc7jl 2 жыл бұрын
thanks! good tip! :D
@ghulamilyas6020
@ghulamilyas6020 Жыл бұрын
thanks alot bro
@TylerThomas
@TylerThomas Жыл бұрын
bravo
@chinonsoemeji2386
@chinonsoemeji2386 2 жыл бұрын
Thanks
@aaroncross6075
@aaroncross6075 2 жыл бұрын
Whaaat?! D:
@marc.laurin
@marc.laurin 2 жыл бұрын
u r a fkn god m8
@kamsb2831
@kamsb2831 4 жыл бұрын
Hi, whenever i do a background image, i try to put an element like a H1 it goes under the image as a new block, how can i put elements on the top of the image?? Thank you
@amena298
@amena298 4 жыл бұрын
Kam Sb try this: H1{ position: absolute; top: 0; left: 0; } Also set position relative to parent div. This should put the H1 element on top of the image.
@efekarahanl5057
@efekarahanl5057 4 жыл бұрын
u can add z-index property. element with the biggest z-index will be on top
@hebertsbonilla7405
@hebertsbonilla7405 5 жыл бұрын
Thank you so much! Pretty nice tip
@edzm.9421
@edzm.9421 4 жыл бұрын
This is helpful. Keep it up!
@anhtaibui4910
@anhtaibui4910 4 жыл бұрын
loving it!
@PolarTitan
@PolarTitan 3 жыл бұрын
Problem I have with this is I already have a background serving as a parallax effect. So background on top of this just complicates things for me.
@samrathchauhan1271
@samrathchauhan1271 Жыл бұрын
this is a legendary video, wasted 20-30 minutes on other videos but this is the real deal and in just 3 mins ^-^
@tsu1983
@tsu1983 2 жыл бұрын
Thank you for this tutorial.I could not find nowhere solution until I watched this video.
@krupaluvora1450
@krupaluvora1450 2 жыл бұрын
Thankyou so much sir I was trying to solve it from last 3 days but you just solved it in just 3:30 minutes
@dontewarapperuma9762
@dontewarapperuma9762 3 жыл бұрын
Thanks ....this was very helpful 🖒🖒
@SanJay-rj5jv
@SanJay-rj5jv 3 жыл бұрын
try to have a control on your breath while speaking. it is annoying to listen like that. otherwise it is good. thank you
@briangitau7737
@briangitau7737 3 жыл бұрын
All I heard was mmnnnthaAAA
@quocminhtrungthach1162
@quocminhtrungthach1162 2 жыл бұрын
My god, thank you for this
@AliKhan-zv6nh
@AliKhan-zv6nh 3 жыл бұрын
Thanks You
@simpleman1770
@simpleman1770 4 жыл бұрын
Is any way use fr of grid in flex
@calvitocalvon1711
@calvitocalvon1711 3 жыл бұрын
good shit
@matiasrinaldi1538
@matiasrinaldi1538 4 жыл бұрын
Thank you!
@danyalahmed641
@danyalahmed641 4 жыл бұрын
Although the content is great,but the sound of breathing is quite irritating.
@MccZerk
@MccZerk 3 жыл бұрын
Bro that fucking breathing...
@aisehibas5915
@aisehibas5915 3 жыл бұрын
Thanks brother !
How to create RESPONSIVE Layouts with CSS GRID
11:04
Coding2GO
Рет қаралды 29 М.
Are You Making These CSS Height Mistakes?
8:54
Web Dev Simplified
Рет қаралды 131 М.
规则,在门里生存,出来~死亡
00:33
落魄的王子
Рет қаралды 16 МЛН
Как мы играем в игры 😂
00:20
МЯТНАЯ ФАНТА
Рет қаралды 3,1 МЛН
when you have plan B 😂
00:11
Andrey Grechka
Рет қаралды 66 МЛН
Learn CSS Subgrid in 14 minutes
14:19
Slaying The Dragon
Рет қаралды 76 М.
How to Make Images Responsive in HTML & CSS // Responsive Web Design Tutorial
8:17
Crazy CSS Using By Master CSS
6:46
Lun Dev
Рет қаралды 157 М.
Learn CSS Border Animations in 6 Minutes
5:57
Coding2GO
Рет қаралды 143 М.
srcset and sizes attributes - [ images on the web | part one ]
30:08
How to STUDY so FAST that it feels ILLEGAL😳
7:21
jspark
Рет қаралды 1,2 МЛН
50 Website Design Mistakes (And Why)
8:24
The Website Architect
Рет қаралды 89 М.
Make Your Site Lightning Fast With Responsive Images
14:13
Web Dev Simplified
Рет қаралды 86 М.
What's the deal with height: auto?
6:01
Kevin Powell
Рет қаралды 118 М.
规则,在门里生存,出来~死亡
00:33
落魄的王子
Рет қаралды 16 МЛН