SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    ********* Addict WP1's Avatar
    Join Date
    Aug 2000
    Location
    New York , USA
    Posts
    407
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How can I use Style code to get this form button to look differently??

    Hello,

    Please take a look at this page.

    I want to make the text on the form button white. In the code they use a "style" element to make the background color of the form button. Can I do something like this to make the text white??

    The code snippet involved is below,
    Code:
    <input type=submit value="Take the quiz now!" style="background-color: #306898; font-family: Arial">
    Any and all responses appreciated.

    WP
    Webbing Along!!!

  2. #2
    ALT.NET - because we need it silver trophybronze trophy dhtmlgod's Avatar
    Join Date
    Jul 2001
    Location
    Scotland
    Posts
    4,836
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    use the code below to make the text white

    Code:
    <input type=submit value="Take the quiz now!" style="background-color: #306898; font-family: Arial; color: #FFFFFF;">

  3. #3
    SitePoint Addict
    Join Date
    May 2001
    Location
    hong kong
    Posts
    214
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I refer to the same question
    if imput button is replaced by a.gif
    how style can force a.gif fill all the button field.

    weiring..

  4. #4
    ********* Addict WP1's Avatar
    Join Date
    Aug 2000
    Location
    New York , USA
    Posts
    407
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by dhtmlgod
    use the code below to make the text white

    Code:
    <input type=submit value="Take the quiz now!" style="background-color: #306898; font-family: Arial; color: #FFFFFF;">
    Thank you for responding.

    I had to mess with some perl code a bit but based on your response I was able to figure out where to place the code.

    Take a look at the page again. The text on the form button is now white and visible.

    Thanks again,

    WP
    Webbing Along!!!


Bookmarks

Posting Permissions

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