0

Help!!!!!

im trying to change the color of the padding around the form but im having trouble.Plz Help <!DOCTYPE html> <html> <head> <title>Donations</title> <style> .container { color:white; text-align:center; margin-top:250px; padding-top:25px solid black; padding-right:25px solid black; padding-bottom:25px solid black; padding-left:25px solid black; } body { background: url("https://www.cameraegg.org/wp-content/uploads/2013/03/Canon-EOS-100D-Rebel-SL1-Sample-Image.jpg") center center fixed; background-repeat: no-repeat; background-size: cover; } </style> </head> <body > <div class="container"> <form> <h1>Donations!</h1> <input type="email" name="email" placeholder="Email

12th Nov 2018, 11:57 PM
Jeremy Cruz
Jeremy Cruz - avatar
2 Answers
0
You can do something close to that with css. div { padding: 35px; background-image: linear-gradient(to bottom, rgba(240, 255, 40, 1) 0%, rgba(240, 255, 40, 1) 100%), linear-gradient(to bottom, rgba(240, 40, 40, 1) 0%, rgba(240, 40, 40, 1) 100%); background-clip: content-box, padding-box; }
13th Nov 2018, 4:43 AM
Mike
0
You can not do that.... padding is used to only for the movement of the elements!! You can can not color them!!
13th Nov 2018, 12:34 AM
AL Araf
AL Araf - avatar