+ 1

fix image inside the container

How do I fit my image inside the container so it takes full width and height and how to write text our the image can we do these things using bootstrap https://code.sololearn.com/W8V536cns7p5/?ref=app

18th Jul 2020, 12:11 PM
Saad Saleem
Saad Saleem - avatar
3 odpowiedzi
+ 2
Set image as container background
18th Jul 2020, 12:16 PM
Calviղ
Calviղ - avatar
+ 3
img{ width:100%; height:100%: object-fit: cover; } you can add this style, 100% always take available parent space
18th Jul 2020, 12:25 PM
Sudarshan Rai
Sudarshan Rai - avatar
+ 1
Calviղ thanks it's work
18th Jul 2020, 1:11 PM
Saad Saleem
Saad Saleem - avatar