I created a div with 2 columns using bootstrap and trying to fit this image in the right column such that it shows just up to the first page. I tried the following code:
img {
height: 100vh;
object-fit: cover;
}
The above code helps me to show the image just up to the first page but it’s not filled completely in the right column even after using the css property object-fit: cover; How should I do it? Please someone help!
Image is provided above!
I want the image to be filled completely in the right column irrespective of its dimensions
2
Answers
–edited —
Based on the code below, the image is filling up normally after I added width: 100%.
If you wanted the image extra space to be gone, I added margin and padding =0 to the column that the image is inside.
I also added a orange border to mark the image territory.
try this:
Or did you mean this: