Link to home
Start Free TrialLog in
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.
SOLUTION
Avatar of Paweł
Paweł
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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