Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Apr 2007
    Thanked 0 Times in 0 Posts

    Boxes color/ I'm dazed

    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?



  • #2
    Senior Coder
    Join Date
    Jun 2002
    The Netherlands, Baarn, Ut.
    Thanked 0 Times in 0 Posts


    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; here are the specs regarding font and color settings.
    You probably might want to know a bit about how to apply CSS rules to your question and answer boxes as well; selectors are the name of the game.


    Posting Permissions

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