HTML: How are you able to change the color of buttons, not using pictures, or is that impossible?
Printable View
HTML: How are you able to change the color of buttons, not using pictures, or is that impossible?
You can use CSS:
Edit: To use that CSS, put it within the head section of the document. If you only want to change certain buttons, then use classes instead.Code:<style type="text/css">
textarea,input {
color:#000080;
font-size: 11px;
background-color: #FFFDF7;
border-color: #4F2700;
border: dashed;
border-width: 1px;
}
</style>
Thanx! :wave: Whats the code for the classes?
I think he means using the class attribute in the button tag. like
input.green{
color: green;
//and whatever css code
}
and then use this tag:
<input class="green">
I don't know if the tag is input or whatever but you should know, that doesn't matter, the thing is the class is green, and you define that with css by using a "." before the classname. That's good to use because than you can use different style on just one or more buttons, and another style on some other buttons...
oh, thanx :thumb: