Results 1 to 5 of 5

Thread: Buttons on HTML

  1. #1

    Thread Starter
    Member MendyGreen's Avatar
    Join Date
    Dec 2004
    Location
    Baltimore, MD
    Posts
    56

    Buttons on HTML

    HTML: How are you able to change the color of buttons, not using pictures, or is that impossible?
    View the Msquared Technologies Web site.
    Every rule has an exception - including that one.
    How can a house burn up if its burning down
    Learn HTML in 1 day!

  2. #2
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090

    Re: Buttons on HTML

    You can use CSS:
    Code:
    <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.
    Have I helped you? Please Rate my posts.

  3. #3

    Thread Starter
    Member MendyGreen's Avatar
    Join Date
    Dec 2004
    Location
    Baltimore, MD
    Posts
    56

    Re: Buttons on HTML

    Thanx! Whats the code for the classes?
    View the Msquared Technologies Web site.
    Every rule has an exception - including that one.
    How can a house burn up if its burning down
    Learn HTML in 1 day!

  4. #4
    Junior Member
    Join Date
    Dec 2004
    Location
    Örebro, Sweden
    Posts
    29

    Smile Re: Buttons on HTML

    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...

  5. #5

    Thread Starter
    Member MendyGreen's Avatar
    Join Date
    Dec 2004
    Location
    Baltimore, MD
    Posts
    56

    Re: Buttons on HTML

    oh, thanx
    View the Msquared Technologies Web site.
    Every rule has an exception - including that one.
    How can a house burn up if its burning down
    Learn HTML in 1 day!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width