Avatar of Paul De Lagrave
Paul De Lagrave
 asked on

CSS Image background image with bootsrap

I am using bootstrap and with an image, you can use class img-responsive to make the image responsive. How can this be done if you are using a css background image.
CSSHTMLBootstrap

Avatar of undefined
Last Comment
Michel Plungjan

8/22/2022 - Mon
SOLUTION
Paweł

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER CERTIFIED SOLUTION
Julian Hansen

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Julian Hansen

Cover vs contain
Cover means the entire element is filled with the image - cropping length or width to ensure it fits.
Contain means you see the whole image but there might be a gutter horizontally / vertically.

The first expands the image until the last border of the image reaches a border of the container
The second expands the image until the first border of the image reaches a border of the container
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Michel Plungjan

No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I have recommended this question be closed as follows:

Split:
-- Julian Hansen (https:#a41827544)
-- Paweł (https:#a41827515)
-- lenamtl (https:#a41835880)


If you feel this question should be closed differently, post an objection and the moderators will review all objections and close it as they feel fit. If no one objects, this question will be closed automatically the way described above.

mplungjan
Experts-Exchange Cleanup Volunteer
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23