Gossamer Forum
Home : Products : DBMan : Customization :

Choosing fixed fonts for form fields and data

Quote Reply
Choosing fixed fonts for form fields and data
Hello there !

Sorry if my question is not fully related to DBman but, after havinge changed the $font to "Times New Roman", a fixed font used to display the headers in my search/add/modify form, I wonder if it is possible...

(I've to take here a breathe of air because my question is very long !)

... to use fixed font for the typed characters in the fields, both with IE 4.0X and Netscape Navigator 4.5 ?

I'm trying to align the fields used along a row with other fields used on other rows in a table, in an easiest way than using width values in pixels as I'm trying to do now.

Thanks in advance for any help to all DBmaniaks !

Germinator
Quote Reply
Re: Choosing fixed fonts for form fields and data In reply to
I think the best way to do it would be to use <PRE> tags. They cause a fixed font to be used, overriding whatever font setting you have. You would use it like

<TR><TD><PRE>FieldName:</PRE></TD>
<TD><PRE>$rec{'FieldName'}</PRE></TD></TR>

or something similar.



------------------
JPD
Quote Reply
Re: Choosing fixed fonts for form fields and data In reply to
Many thanks JPD for your answer. I tried with <pre> and it works as desired.
After some searches on Usenet, I've found a way to have the fields and typed text displayed in fixed format with IE 4.0 as it is the case with Netscape Navigator 4.5 and I would like to share it here:
After the <head> tag in html.pl, add
commands<style>font_family: Courier New</style>

Bye now !
Germinator
Quote Reply
Re: Choosing fixed fonts for form fields and data In reply to
Still a problem remains with both Microsoft and Netscape browsers: the build_select strings allowing to choose one of them are still displayed in Proportional ! I don't have find any solution to that, so... HELP !

Thank you for any hint !
Germinator