I used background-size: cover
for mobile screen sizes.
But, for desktop, if I use background-size: cover
, I can't see the cat in my image. Because, the original size of my image is that the height is much longer than the width.
So, I would like to repeat only a partial part of my image that a cat doesn't appear. But, if I use background-size: contain
& background-repeat: repeat-x
, what I see is the following:
(The cat in the image is appeared three times.)
What I want to do is something like the following:
(Repeat only the part on the left & right that cat doesn't appear.)
I googled quite a bit & read several posts in StackOverflow. But, I couldn't find an answer I want. If you could give me any advice, I'd really appreciate it!
* Here are the links for the images:
- [1st] https://postimg.cc/image/6pku8wgcr/
- [2nd] https://postimg.cc/image/rz8gjr4d7/
- [Original Cat Background] https://postimg.cc/image/hcenege97/