View Full Version : Boxes color/ I'm dazed

04-10-2007, 06:47 AM
OK I installed a javascript for a faq page. I have been able to get all the colors and sizes right until just about now. I can't get the boxes that display the answers and questions to turn from white to my greyish color, or the font inside it.
Heres the code

<form name=faqform>
<table border=1 cellspacing=0 cellpadding=5>
<tr bgcolor="#444444">
<td align=center><font face="verdana,arial" size="-1" color="C4C4C4">
<b><font color="#C4C4C4">Coders World</font></b></font></td>
<tr bgcolor="#383838"><td><font face="verdana,arial" size="-1" color="#C4C4C4"><br>
Browse the Frequently Asked Questions below and click for the answer.
<ul><select size=5 name=question onChange="javascript:showFAQ(this.form);">
<option value="Look at the Announcement in coders forum. ">&nbsp;&nbsp;&nbsp;-->&nbsp;&nbsp;How do I sign up to be a team member?
<option value="Yes, as long as you are willing to learn. We will always need help with the small things as well as the big things.">&nbsp;&nbsp;&nbsp;-->&nbsp;&nbsp;I have a very limited knowledge of computer programing. Can I still sign up?
<option value="Any regular member of coders forum is eligible to receive out programs for free.">&nbsp;&nbsp;&nbsp;-->&nbsp;&nbsp;How do I obtain one of the coding teams programs?
<option value="You can join the coding team and help us produce programs, or just spread the word and invite your friends. ">&nbsp;&nbsp;&nbsp;-->&nbsp;&nbsp;I really enjoy coders forum and want to help out. How can I?
And Their Answers:
<textarea name="answer" rows=5 cols=40 wrap=virtual></textarea>

I can't get the black font inside the white boxes to change colors, or the box itself. Any suggestions?



04-10-2007, 09:23 AM
You are strongly recommended not to use the outdated font element and presentational attributes, but to resort to using Cascading Style Sheets (CSS).

Here are some tutorials on CSS (http://www.htmldog.com/guides/); here are the specs regarding font (http://www.w3.org/TR/CSS21/fonts.html) and color (http://www.w3.org/TR/CSS21/colors.html) settings.
You probably might want to know a bit about how to apply CSS rules to your question and answer boxes as well; selectors (http://css.maxdesign.com.au/selectutorial/) are the name of the game.