Click here to Skip to main content
15,901,853 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HTML
  <div>
        <style>
body {
   background-image: url("https://lovefoodhatewaste.ca/wp-content/uploads/2018/06/FoodBackground.jpg");
  
  /* Add the blur effect */
  filter: blur(8px);
  -webkit-filter: blur(8px);
    height: 100%; 

  
  /* Center and scale the image nicely */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  font-family: 'Lato', sans-serif;
  color: #FDFCFB;
  text-align: center;
}


form {
  width: 450px;
  margin: 17% auto;
}


.header {
  font-size: 35px;
  text-transform: uppercase;
  letter-spacing: 30px;
}


.description {
  font-size: 14px;
  letter-spacing: 1px;
  line-height: 1.3em;
  margin: -2px 0 45px;
}


.input {
  display: flex;
  align-items: center;
}


.button {
  height: 44px;
  border: none;
}

#fname {
     width: 75%;
  background: #FDFCFB;
  font-family: inherit;
  color: #737373;
  letter-spacing: 1px;
  text-indent: 5%;
  border-radius: 5px 0 0 5px;
}

#lname {
     width: 75%;
  background: #FDFCFB;
  font-family: inherit;
  color: #737373;
  letter-spacing: 1px;
  text-indent: 5%;
  border-radius: 1px 0 0 1px;
}
  
#email {
  width: 75%;
  background: #FDFCFB;
  font-family: inherit;
  color: #737373;
  letter-spacing: 1px;
  text-indent: 5%;
  border-radius: 5px 0 0 5px;
}


#submit {
  width: 25%;
  height: 46px;
  background: #E86C8D;
  font-family: inherit;
  font-weight: bold;
  color: inherit;
  letter-spacing: 1px;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  transition: background .3s ease-in-out;
}
  

#submit:hover {
  background: #d45d7d;
}
  

input:focus {
  outline: none;
  outline: 2px solid #E86C8D;
  box-shadow: 0 0 2px #E86C8D;
}"
            </style>
        <form action="register.aspx" runat="server" method="post">
            <input type="text" id="fname" name="=fname" placeholder="first name " />
            <br />
            <input type="text" id="lname" name="=lname" placeholder="last name " />
            <br />
            <input type="text" id="email" name="=email" placeholder="EMAIL " />
            <br />
            <input type="password" id="password" name="=password" placeholder="password " />
            <br />
            <input type="submit" id="submit" name="=submit" value="register" />
            <br />
        </form>
       </div>


What I have tried:

i dont really understand how to blur only certain parts so it would help immensely if you could help me write the code
Posted
Updated 6-Apr-20 6:54am
v2

1 solution

You add the blur effect for the body tag

filter: blur(8px);
  -webkit-filter: blur(8px);


so it affected all content inside the body. instead, apply blur effect for body tag search how to apply the blur effect for background image in online and try any methods which one suitable to you.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900