Home > front end >  Help, how to fill the background image with the full change along with the container size change
Help, how to fill the background image with the full change along with the container size change

Time:11-27

This is the code now
<body style="background - attachment: fixed" background="image/workshop background 1. PNG"
Style="background - position: center center;
background-repeat: no-repeat;
Background - attachment: fixed;
Background - size: cover;">

CodePudding user response:

Style="background - image: url (' background image/workshop 1. PNG ');
Background - position: center center;
background-repeat: no-repeat;
Background - attachment: fixed;
Background - size: cover;">

CodePudding user response:

Width height set to 100%, don't write in HTML CSS??

CodePudding user response:

Style="background - image: url (' background image/workshop 1. PNG ');
Background - position: center center;
background-repeat: no-repeat;
Background - attachment: fixed;
Background - size: 100% 100%;">
Set background - size to complete, this will fill the whole box, box how how it

CodePudding user response:

<body style="background: url (img/background. PNG); Background - size: 100% 100%; background-repeat: no-repeat; Background - attachment: fixed; height: 100vh; Width: 100 vw;">