I am having trouble changing the font, size and color of my contact form. I am new to php and just wondering what it is I need to do or change to get it to work. I was trying to use CSS but it didnt change anything other than the background of the page.
In my css all I have is font family and size attributes.
<?php
if(isset($_POST['submit'])) {
$to = "test@test.com";
$subject = "Form Tutorial";
$name_field = $_POST['name'];
$email_field = $_POST['email'];
$message = $_POST['message'];
$body = "From: $name_field\n E-Mail: $email_field\n Message:\n $message\n";
echo "Your email has been sent!";
mail($to, $subject, $body);
} else {
echo "blarg!";
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="en-us">
<link href="contact.css" rel="stylesheet" type="text/css" />
</head>
<div class="contact">
<form method="POST" action="mailer.php">
Name:
<input type="text" name="name" size="25"><br>
<br>
E-Mail:
<input type="text" name="email" size="25"><br>
<br>
Message:<br>
<textarea rows="9" name="message" cols="30"></textarea><br>
<br>
<input type="submit" value="Submit" name="submit">
</form>
</div>
</html>