Issue
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;
}
Solution
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
#form input{
background-color: #000;
}
#form input .submit{ ... }
#form label { ... }
And so on.
Answered By - Samuele Mattiuzzo
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.