change the default color of fields in a form

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default change the default color of fields in a form

    Hi..
    This forum's great...

    I'm a very new user to dW, I work mostly in design mode but can edit a bit of
    code, not much.

    I created a form thru my web hosting administrator, copied the raw text to DW
    and tweaked it a bit from there. Works great. I just want to edit the fields to
    be something other than yucky default yellow.

    Is this something I can manipulate through DW?

    My code is attached below; please accept my apologies in advance if it's
    sloppy, as I said I'm new...
    ***************************



    <form action="thanks.html"
    method="post"
    enctype="application/x-www-form-urlencoded" name="bwccontact"
    id="bwccontact">
    <table>
    <tr>
    <th width="176" align="right">
    Name: </th>
    <td colspan="3">
    <input type="text" name="Name" size="30" /> </td>
    </tr>
    <tr>
    <th align="right">
    Street Address: </th>
    <td colspan="3">
    <input type="text" name="Street_Address" size="30" /> </td>
    </tr>
    <tr>
    <th align="right">
    City: </th>
    <td colspan="3">
    <input type="text" name="City" size="30" /> </td>
    </tr>
    <tr>
    <th align="right">
    State: </th>
    <td width="25">
    <input name="State" type="text" size="4" maxlength="2" /> </td>
    <td width="83">&nbsp;</td>
    <td width="83">&nbsp;</td>
    </tr>
    <tr>
    <th align="right">
    Zip: </th>
    <td colspan="3">
    <input name="Zip" type="text" size="12" maxlength="10" /> </td>
    </tr>
    <tr>
    <th align="right">
    Phone: </th>
    <td colspan="3">
    <input name="Phone" type="text" value="(xxx) xxx-xxxx" size="30" />
    </td>
    </tr>
    <tr>
    <th align="right">
    Email: </th>
    <td colspan="3">
    <input name="Email" type="text" size="30" maxlength="35" /> </td>
    </tr>
    <tr>
    <th height="40" align="right" valign="top">
    Questions or Comments: </th>
    <td colspan="3">
    <textarea name="Questions_or_Comments" cols="40" rows="5">Please input
    any questions or comments you may have. 150 character maximum,
    please.</textarea> </td>
    </tr>
    <tr>
    <th align="right"> Preferred Contact Method: </th>
    <td colspan="3"><input type="radio" name="Preferred_Contact_Method"
    value="Phone" checked="checked" class="checkbox" />
    Phone
    <input type="radio" name="Preferred_Contact_Method" value="Email"
    class="checkbox" />
    Email </td>
    </tr>
    <tr>
    <th align="right">
    Best Time to Reach You: </th>
    <td colspan="3">
    <input name="Best_Time_to_Reach_You" type="text" value="daytime or
    evening?" size="30" /> </td>
    </tr>
    <tr>
    <th></th>
    <td colspan="3"><input type="submit" name="Form_Submit" value="Submit
    Form" />
    <input name="Form_Reset" type="reset" value="Reset Form" /></td>
    </tr>
    <tr>
    <th></th>
    <td colspan="3">&nbsp;</td>
    </tr>
    </table>
    <input type="hidden" name="_vDeckformid" value="567" />
    </form>

    Jamie9470 Guest

  2. Similar Questions and Discussions

    1. How can I set the default font for fields in Forms Wizard?
      I know that I can right click on a form field, and set the format for future fields based on that field's appearance, but when I run the Forms Wizard...
    2. user inputs form color change
      I have a form that has a row of fields. I need the user to be able to choose different colors in those fields and then submit the form. The reciever...
    3. Radio Button to change Form Fields
      I am looking for code to do the following: I have a Radio Button Called MonthQuarter. With Quarter checked by default. I also have a form...
    4. Adding fields to default header
      I'm trying to consume a Java-based web service, and the RPC style requires a message that looks like this: <?xml version="1.0"...
    5. How to change the color of the modified fields in a Datagrid?
      I have a situation where in a user would like to see all the modified fields font red in color when a record has been updated in a Datagrid. ...
  3. #2

    Default Re: change the default color of fields in a form

    You can solve this using CSS:

    <style type="text/css">
    <!--
    input {
    background-color: #00FF99;
    }
    -->
    </style>

    You can either link to an external CSS file put this code in it, or paste this
    code within the <head> tag.

    Change the color to whatever you want also

    jeremyluby Guest

  4. #3

    Default Re: change the default color of fields in a form

    You can apply most of CSS properties to form elements, including text and
    background color changes within a text field or text area, for example.
    However, this needs help of script and event handling.

    You may define the color of a text box, checkboxes and radio buttons as well
    as menu list items and much more. I suggest to define styles in external files
    since you can use it as "dll" (dynamic link library).

    The Challenger Guest

  5. #4

    Default Re: change the default color of fields in a form

    My profuse apologies for the late reply! I just wanted to say thanks jeremyluby and challenger for your help.
    Jamie9470 Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139