Gossamer Forum
Home : Products : DBMan : Customization :

Silly question regarding font sizes and colors

Quote Reply
Silly question regarding font sizes and colors
I have tried to modified the demo DBman to match the rest of my website. I have been mostly successful as a beginner with a few exceptions; On my entry form I realize that certain text (lists from checkbox choices or radio buttons) retain their original font sizes and colors and checkboxes do not align correctly. This is a problem for me since I am trying to place everything on a black background; all the text from radio button choices hence are invisible.

I have formatted my html.pl file to have a table with black background and white text. But pulled fields from my default.cfg, ie: &build_radio_field("A","$rec{'A'}"), seem to resist my chosen font characteristics.

Is there a global default font setting? or is this font to be set up from somewhere else? ie: in a different subroutine?

There seems to be very little coverage regarding font modification.

You can see the erroneous results on my demo site at www.msociety.com/cgi-bin/db.cgi the permissions are standard admin/admin etc.

Both the default.cfg file and html.pl is available as text in:

www.msociety.com/personal/aming/default.txt
and
www.msociety.com/personal/aming/html.txt

Would be grateful for any help.
Quote Reply
Re: Silly question regarding font sizes and colors In reply to
Thanks for the quick response Eliot.

I created my own table and had not been using the autogenerate feature.

Also, in removing the &nbsp, another problem occurs: a semicolon now appears before my radio or check box selections.

The code is as follows:

<td width="381" bgcolor="#000000" valign="middle"><font face="Arial, Helvetica, sans-serif" size="2" color="#FFFFFF">;|;
print &build_radio_field("Category","$rec{'Category'}"); print qq|</td>
</tr>

I tried removing the semicolon but then I get an error message pointing me right back there. I have tried removing the pipe, but the error message is even more cryptic. I have removed both and it still doesnt work.

So right now, my alignment is still off and I have unwanted semicolons. Any thoughts on this?

to see what I mean, my site www.msociety.com/cgi-bin/db.cgi is accessible to all for now.
Quote Reply
Re: Silly question regarding font sizes and colors In reply to
just figured out the fonts... but still cant get the alignment right on the text and checkboxes etc.

Does anyone else have this problem?
Quote Reply
Re: Silly question regarding font sizes and colors In reply to
You have to edit the following sub-routine,sub build_checkbox_field, in the db.cgi script.

If you want your checkboxes listed in a vertical row, like the following:

__ Option 1
__ Option 2
__ Option 3

Then, you will simply have to add a <br> in the following codes:

Code:
($output .= qq!<INPUT TYPE="CHECKBOX" NAME="$column" VAL
UE="$name" CHECKED> $name\n!) :
($output .= qq!<INPUT TYPE="CHECKBOX" NAME="$column" VAL
UE="$name"> $name\n!);

So, it should look like the following with the <br> codes:

Code:
($output .= qq!<INPUT TYPE="CHECKBOX" NAME="$column" VAL
UE="$name" CHECKED> $name<br>\n!) :
($output .= qq!<INPUT TYPE="CHECKBOX" NAME="$column" VAL
UE="$name"> $name<br>\n!);

Hope this helps.

Good luck.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------



Quote Reply
Re: Silly question regarding font sizes and colors In reply to
Hello Eliot, thanks for the immediate and thorough reply. Actually, the difficulty I am having on the entry form is twofold:

1) having the check boxes, select boxes, and text boxes all align together down the same column (i.e: all the select boxes seem align a few pixels to the left of all the text boxes and to the right of the text area box)

2) regarding check box alignment, I am looking for a way to align the individual boxes somehow so that when it wraps because of the table width limitation, the placement of the boxes is not random depending on the length of each word. For example:

instead of,
[] One [] Seventeen [] Three
[] Five [] Eight [] Four

we would have,

[] One [] Seventeen [] Three
[] Five [] Eight [] Four

Is this possible to achieve?
Quote Reply
Re: Silly question regarding font sizes and colors In reply to
1) Check your HTML codes and make sure that you do not have any space codes like & n b s p ; (Without the spaces between the letters and characters. This UBB does not allow special character codes to print in raw format.) between the the print build_select_fields codes. Another suggestion would be to turn off the auto-generation option and make your own forms.

2) This would be a bit complicated. You would have to add a $half variable and then pull the $half variable to the next line of checkboxes.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------





[This message has been edited by Eliot (edited January 05, 2000).]
Quote Reply
Re: Silly question regarding font sizes and colors In reply to
Uh...You have the following codes:

Code:
;|;

The codes should look like the following:

Code:
<td width="381" bgcolor="#000000" valign="middle"><font face="Arial, Helvetica, sans-serif" size="2" color="#FFFFFF">
|; print &build_radio_field("Category","$rec{'Category'}");
print qq|
</td></tr>

YOU need to look over your codes more carefully!

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------



Quote Reply
Re: Silly question regarding font sizes and colors In reply to
Thank you so much Eliot. Getting rid of the semicolons really work! I guess it'll take time before I get used to all the codes (I am a newbie too).

However, my other problem regarding alignment still exists. My text boxes are still not aligning completely to the left. Seems like a space has been inserted in there.

The code is as follows:

<tr>
<td width="119" bgcolor="#000000">
<div align="right"><font face="Arial, Helvetica, sans-serif" size="2" color="#FFFFFF">Record
# : </font></div>
</td>
<td width="381" bgcolor="#000000" valign="middle">;
<input type="text" name="ID" value="$rec{'ID'}" size="5" maxlength="8">
</td>
</tr>

Is there an alignment function that I am missing?

Would appreciate your feedback...
Quote Reply
Re: Silly question regarding font sizes and colors In reply to
Uh...yea....Do you see valign="middle" in the table cell codes????

That is the problem.

If you want the textbox to align to the left, use valign="left", or just take out valign="middle" and it will default to the left.

I would suggest picking up HTML for Dummies or taking a HTML tutorial.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------



Quote Reply
Re: Silly question regarding font sizes and colors In reply to
Hi Eliot:
Sorry to bother you with these simple mundane questions regarding alignment. I figured it would be pretty easy spot for someone with experience.

Unfortunately, your suggestion does not work to force a left alignment in the table cell for the text entry input cell.

I have tried -

<halign="left">
<valign="left">
<div align="left">
and removing it all together.

Nothing seems to work. I am besides myself over this little issue.

Here is a sample of the code. Am I missing a bigger picture (global) alignment setting from a different subroutine somewhere?

<tr>
<td width="119" bgcolor="#000000">
<div align="right"><font face="Arial, Helvetica, sans-serif" size="2" color="#FFFFFF">Record
# : </font></div>
</td>
<td width="381" bgcolor="#000000" halign="left">;
<input type="text" name="ID" value="$rec{'ID'}" size="5" maxlength="8">
</td>
</tr>

Thanks for your patience.
Quote Reply
Re: Silly question regarding font sizes and colors In reply to
Did you try my suggestion with NOT using any alignment codes??????????????

If that doesn't work, then use the following codes:

Code:
<div align="left">
<input type="text" name="ID" value="$rec{'ID'}" size="5" maxlength="8"></div>

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------



Quote Reply
Re: Silly question regarding font sizes and colors In reply to
Thank you very much Eliot.

I finally figured out the problem. I had left a semicolon in between html tags. While my text boxes were aligning to the left, it wasn't aligning fully to the edge.

Anyhow, now I can get on to more useful questions to ask the group.

Thanks for all the help. You are doing a great job! Best tech support I've ever witnessed (can't believe its all volunteer!)