I'm attempting to place a background image at the center of my webpage, but unfortunately, the image extends beyond the page boundaries and is only partially visible.
Below is my CSS code snippet:
body{
background-image: url(../img/music_palace_logo2.png);
background-repeat: no-repeat;
background-position: center;
background-size: 50%;
I have tried adjusting the background-size property:
background-size: contain;
However, this makes the image appear too small. Is there a way to resolve this issue effectively?