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 3 of 3
  1. #1
    New Coder
    Join Date
    Aug 2008
    Posts
    64
    Thanks
    11
    Thanked 0 Times in 0 Posts

    form text color help

    I have a form. I specify white text, but it does not work
    Code:
    <center>
    <title>Our Location</title>
    <body bgcolor="black">
    <EMBED src="nav_bar.swf" width="750" height="100">
    <link rel="stylesheet" type="text/css" href="style.css">
    <div id="content">
    		<font face="Arial" size="3" color="white">
    		<table border="0" cellspacing="3" cellpadding="3">
    		<form method="post" action="./mail.php">
    		<font face="Arial" size="3" color="white">
    		<tr><td>Name: </td><td><input type="text" name="name"></td></tr>
    		<tr><td>Phone number: </td><td><input type="text" name="phone"></td></tr>
    		<tr><td>Model Year: </td><td><input type="text" name="year"></td></tr>
    		<tr><td>Make: </td><td><input type="text" name="make"></td></tr>
    		<tr><td>Model: </td><td><input type="text" name="model"></td></tr>
    		<tr><td>E-mail: </td><td><input type="text" name="email"></td></tr>
    		<tr><td>Date (dd/mm): </td><td><input type="text" name="date"></td></tr>
    		<tr><td colspan="2" align="right"><input type="submit" name="submit" value="Schedule"></td</tr>
    		</font>	
    </div>

  • #2
    New Coder
    Join Date
    Nov 2008
    Posts
    16
    Thanks
    1
    Thanked 1 Time in 1 Post

    Try doing it with CSS

    It's better practice to set colors and other style related things in CSS. The font tag you're using is deprecated, so it won't work in future versions of HTML.

    Try putting this in your css file:
    Code:
    #content {
    color:#FFFFFF;
    }
    That should set all your text inside that div to white. If this doesn't work, there could be something in your CSS file that is overwriting your font color. (For example, this code would overwrite it by setting the text inside the form inside the div to black:
    Code:
    #content form {
    color:#000000;
    }
    Post your css if you still have trouble.

  • Users who have thanked queirdo for this post:

    westes (11-25-2008)

  • #3
    New Coder
    Join Date
    Aug 2008
    Posts
    64
    Thanks
    11
    Thanked 0 Times in 0 Posts
    Thanks it worked! (sorry for the late reply, the DSL fiber-optic cables needed repairs)


  •  

    Posting Permissions

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