Here is my CSS code:
.TabTop {
background-image: url("https://i.imgur.com/5qOZqaY.png");
width: 1855px;
height: 168px;
background-repeat: no-repeat;
}
.TabMid {
background-image: url("https://i.imgur.com/6uMuiY4.jpg");
width: 1855px;
height: 100%;
background-repeat: repeat-y;
}
.TabBot {
background-image: url("https://i.imgur.com/5Psk33C.png");
width: 1855px;
height: 237px;
}
And here's my HTML code:
<div class="TaTop"></div>
<div class="TabMid"></div>
<div class="TabBot"></div>
Right now it looks like this: https://i.stack.imgur.com/IKtcM.jpg
As you can see on the right there is a gap.
I would like all 3 parts of the image to be centered and resized in width according to the size of the user's computer monitor size.
I also tried background-size: cover it doesn't seem to work.
How could I do that?