Hello Everyone! I have built the survey form but i am having difficulty fixing the background image . If i am setting it to “no-repeat”
then there is a white-space or it uses background color given to the body. if i use repeat then background image repeats itself. Please help me fix it
*{
box-sizing: border-box;
}img{
height:auto;
}
html{
height:100%;
}
.container{
width: 100%;
margin: 3.125rem auto 0 auto;
}.text-center{
text-align:center;
}.description{
font-style: italic;
font-weight: 200;
}body{
font-family: Poppins, sans-serif; font-size: 1rem; color: #f3f3f3; margin:0;
}
body {
display:block;
width: 100%;
margin: 0;
background-image: linear-gradient( 115deg, rgba(58, 58, 158, 0.8), rgba(136, 136, 206, 0.7) ), url(https://cdn.freecodecamp.org/testable-projects-fcc/images/survey-form-background.jpeg);
height: 100%;
background-size:cover;
background-position: center;
}h1, p{
margin-top: 0;
margin-bottom: 0.5rem;
}p{
font-size:1.25rem;
}p {
display: block;
margin-block-start: 1em;
margin-block-end: 1em;
margin-inline-start: 0px;
margin-inline-end: 0px;
}@media (min-width:480 px){
form{
padding:2.5rem;
}
}form
{
background: rgba(27, 27, 50, 0.8);
padding: 2.5rem 0.625rem;
border-radius: 0.25rem;
}form {
display: block;
margin-top: 0em;
width: 60vw;
max-width: 500px;
min-width: 300px;
margin: 0 auto;
padding-bottom: 2em;
}div{
display:block;
}.input-textarea{
min-height: 120px;
width: 100%;
padding: 0.625rem;
resize: vertical;
}label{
display: flex;
margin: 0.5rem 0;}
#name, #email, #number{
margin: 10px 0 0 0;
width: 100%;
min-height: 2em;
}input, button, select, textarea {
margin: 0;
font-family: inherit;
font-size: inherit;
line-height: inherit;}
.input-checkbox{
display:block;
}.submit-button{
display: block;
width: 100%;
padding:0.75rem;
margin: 1em auto;
font-size: 1.1rem;
background:#37af65 ;
color:white;
border-radius:2px;
text-align:center;}
button{
border: none;
}.clue
{
margin-left: 0.25rem;
font-size: 0.9rem;
color: #e4e4e4;
}