I’m trying to set a background color to the HTML form tag, but it doesn’t work?! I thought it was a simple task!
#form {
background-color: #000;
padding: 10px;
}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Can we just see the HTML code of your form? Maybe there’s a class you’re using that conflicts with your #form declaration.
Also, if you want the “form block” to have a background, put it inside a div and background it.
If you want to give a background to the form inputs, you should give a style to the input objects
And so on.