How to make an image and a div the same size | CSS tips and tricks | #SmartCode

preview_player
Показать описание
#css #div #img
Hi!
In this video, I have shown you how to make an image and a div the same size, or you can simply say, auto resize the image in accordance to the size of div.

Using text on the screen I have described all the necessory steps.

If you find some thing confusing please do let me know. Just write in the comment i will definitely update you back.

Thanks for watching!
#smartcode

Other interesting CSS tips and tricks:

▶ How to make an image and a div the same size | CSS tips and tricks | #SmartCode

▶ Text Fade in and Fade Out Using CSS Animation | CSS tips and tricks | #SmartCode

▶ How To Create Tooltip Using CSS | CSS tips and tricks | #SmartCode

Related queries:
Auto Resize An Image To Fit Its Div Container Using CSS,
Auto Resize An Image To Fit Its Div Container,
Auto Resize Image To Fit Div Container,
Auto Resize Image To Fit Div Container Using CSS,
Apply Style For Auto Resize Image To Fit Div Container,

#css #html #htmlimage #divandimage #smartcode
Рекомендации по теме
Комментарии
Автор

Thank you so much, you are simple and fast, you fixed my problem with div's and pic's 🎉🎉🎉

Underaluckystarobv
Автор

god damn it you help me i did waste my hole day looking for why my image wont resize I didn't notice that I was resizing the div element thanks a lot

oussamabensaidi
Автор

Thanks Sir ☺️
Ur really Time saver ⚔️🖤

mabdurrahman
Автор

sir let we have to take image height 500px but image height not more than 200px how to solve it with out using min-width in div and image please tell sir i m new in this field

deepaksinghlodhi