0

I need to make a full width image with fixed height. So I write the following code in html

<div class="marquee">

        <div class="row">
            <div class="col-lg-12">
                <img class="img-marquee" src="img/image1.jpg" alt="image 1">
            </div>

            <div class="col-lg-12">
                <img class="img-marquee" src="img/image2.jpg" alt="image 2">
            </div>
        </div>
</div>

in CSS I write the following code

.marquee {
    height: 75vh;
}

.img-marquee {
    max-width: 100%;
}

The result is full width image but not with the same height of the marquee which is 75vh. so my question how to do that in css by using bootstrap framework?

HTML Man
  • 937
  • 4
  • 16
  • 40

2 Answers2

0

try with :

.img-marquee {
    width: 100%;
}
bob
  • 4,595
  • 2
  • 25
  • 35
0

Try this code:

width:100%
display:block
position:absolute #optional
background: url('your .jpg') repeat scroll 0% 0% / 100% auto transparent;
Ubdus Samad
  • 1,218
  • 1
  • 15
  • 27