Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Mar 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cool Button Background Colour Change ----- Help Me Please!!!

    My main question is: how do you change the colour of a button:

    For example: this is a normal button:

    Code:
    <form name="form1">
    <input type="button" name="button1" value="whatever">
    </form>
    Now... how do i change the background colour of that button so it just does not stay
    at a boring white or grey, lets say I want it to be the colour "blue".

    Any help much appreciated, thankyou!!!

  • #2
    Senior Coder
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    1,063
    Thanks
    2
    Thanked 0 Times in 0 Posts
    You need css:
    Code:
    <input type="button" ... style="background: blue;" />
    or
    Code:
    <style type="text/css">
    
    input { background: blue; }
    
    </style>
    applies to ALL input tags
    Do you know about css?
    Shawn


  •  

    Posting Permissions

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