Click to See Complete Forum and Search --> : Buttons on HTML
MendyGreen
Jan 5th, 2005, 03:41 PM
HTML: How are you able to change the color of buttons, not using pictures, or is that impossible?
Acidic
Jan 6th, 2005, 12:07 PM
You can use CSS:
<style type="text/css">
textarea,input {
color:#000080;
font-size: 11px;
background-color: #FFFDF7;
border-color: #4F2700;
border: dashed;
border-width: 1px;
}
</style>
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.
MendyGreen
Jan 6th, 2005, 03:54 PM
Thanx! :wave: Whats the code for the classes?
Pixelgamer
Jan 6th, 2005, 04:51 PM
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...
MendyGreen
Jan 6th, 2005, 06:15 PM
oh, thanx :thumb:
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.