Gossamer Forum
Home : Products : DBMan : Discussions :

Change font size in one field

Quote Reply
Change font size in one field
How do I change the font size for one field? Have searched the forums with no luck.
Quote Reply
Re: [rdub] Change font size in one field In reply to
Use the following in sub html_record:

Code:
<font size=whatever>$rec{fieldname}</font>


JPD
----------------------------------------------------
JPDeni's DBMan-ual
How to ask questions the smart way.
Quote Reply
Re: [JPDeni] Change font size in one field In reply to
Like this?
<TD WIDTH="80%">&nbsp;<$font>
<font size=1>$rec{'Description'}</Font></font></TD></TR>
Quote Reply
Re: [rdub] Change font size in one field In reply to
You're using my "user-friendly" html.pl file. :-)

In that case, I would add the following to the HTML Globals section of the file:

Code:

$fontbig = "$face size=whatever";


Then, where you want to use it, use <$fontbig> instead of <$font>.


JPD
----------------------------------------------------
JPDeni's DBMan-ual
How to ask questions the smart way.
Quote Reply
Re: [JPDeni] Change font size in one field In reply to
Yes I am and it's a big help. I'll try this change.
Quote Reply
Re: [JPDeni] Change font size in one field In reply to
Not seeing any change.
Quote Reply
Re: [rdub] Change font size in one field In reply to
I'll have to get back to you. It's in the middle of the night where I am and I'm about ready to go to bed. :-)


JPD
----------------------------------------------------
JPDeni's DBMan-ual
How to ask questions the smart way.
Quote Reply
Re: [JPDeni] Change font size in one field In reply to
It's about 1 here. You know how it is when you get working on something. Thank you.
Quote Reply
Re: [rdub] Change font size in one field In reply to
Yes, I do understand about getting into something and not wanting to quit. :-)

The first thing I would do is to make sure that the font size thing is having an effect at all. Just as a test, change the size in the $font variable. Make it a major change so you can be sure that you see it. Something like

Code:

$font = "$face size=7";


Don't worry. You're not going to keep it like that. :-)

You know.... another thing you can do is something like


Code:

<TD WIDTH="80%">&nbsp;<$font><BIG>$rec{'Description'}</BIG></font></TD></TR>


You have less control over the size, but it works. If you want this field to be smaller than the rest, use <SMALL>. You can even use two of them to make still bigger or smaller text:

Code:

<BIG><BIG> ... </BIG></BIG>
<SMALL><SMALL> ... </SMALL></SMALL>


The "small" doesn't seem to make as much of a difference as the "big" does, though.



JPD
----------------------------------------------------
JPDeni's DBMan-ual
How to ask questions the smart way.
Quote Reply
Re: [JPDeni] Change font size in one field In reply to
Thank you. Would I do the same thing for bold or a different color?
Quote Reply
Re: [JPDeni] Change font size in one field In reply to
All of a sudden, my records don't view properly. Starting with record 2, all data has moved up one field. The database itself hasn't changed, only the view.
Quote Reply
Re: [rdub] Change font size in one field In reply to
Quote:
Thank you. Would I do the same thing for bold or a different color?

Yes.

As for your other problem, you need to go back to see what you've changed. The formatting that I've given you wouldn't change anything as far as the records themselves go.


JPD
----------------------------------------------------
JPDeni's DBMan-ual
How to ask questions the smart way.
Quote Reply
Re: [JPDeni] Change font size in one field In reply to
Your right. I added another field. When I remove it from default.cfg the problem is fixed. Need that additional field.
Quote Reply
Re: [rdub] Change font size in one field In reply to
Adding a field is a bit of a pain in DBMan.

You'l need to
--add the field in the .cfg file
--open your .db file and add a delimiter (if you haven't changed it from the default, it's the | character) to the end of all the existing records (Or you can start over with a blank .db file)
--add input fields to sub html_record_form and display to sub html_record


JPD
----------------------------------------------------
JPDeni's DBMan-ual
How to ask questions the smart way.
Quote Reply
Re: [JPDeni] Change font size in one field In reply to
Thank you for the tip on the delimiter in the db file. I'm sure I'll post more questions as I set this up.
Quote Reply
Re: [rdub] Change font size in one field In reply to
If you can look at this sample record, http://www.invisiongrafix.com/...=1&Catb=Vacation you'll notice that the first work in the description field looks like it is indented at least one space. Can this be fixed?
Quote Reply
Re: [rdub] Change font size in one field In reply to
I see this is on every field.
Quote Reply
Re: [rdub] Change font size in one field In reply to
Found it. Sorry.