Gossamer Forum
Home : Products : DBMan : Customization :

DBMan Customization

Quote Reply
DBMan Customization
How does one configure html.pl to center search results display in a browser. I tried the following but I was only partially successful:

my (%rec) = @_;
my $font = $font_color;
($db_auto_generate and print &build_html_record_form(%rec) and return);

print qq|
<CENTER>
<TABLE WIDTH="450" CELLPADDING=0 CELLSPACING=0 BORDER=1 BGCOLOR="#FFFFCC">
<TR><TD ALIGN="Right" VALIGN="TOP" WIDTH="150"><$font_color>ID:</FONT></TD>
<TD VALIGN="TOP" WIDTH="475"> <INPUT TYPE="TEXT" NAME="ID" VALUE="$rec{'ID'}" SIZE="3" MAXLENGTH="3"></TD></TR>
<TR><TD ALIGN="Right" VALIGN="TOP"><$font_color>Title:</FONT></TD>

Quote Reply
Re: DBMan Customization In reply to
You need to specify that the table cells are centred, as these will override the <CENTRE> tag.

Just change
Code:
TD ALIGN="Right"

to
Code:
TD ALIGN="Center"

------------------
Ben

-------------------------
http:/www.t-e.co.uk