Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CGI and Text Alignment

Status
Not open for further replies.

samesale

Programmer
Sep 15, 2003
133
0
0
US
I am trying to align the two texts. However, the top text shows up on the left and bottom on the right. What is wrong? Please help. The rest of the program works.

print qq(<table bgcolor=seashell>
<tr><td><b> PLEASE FILL OUT ALL THE INFORMATION IN THE FORM. IF YOU LEAVE OUT ANY SPACE, THE INFORMATION WILL NOT BE PROCESSED, AND IT WILL IDENTIFY THE SPACE NOT COMPLETED AND WILL ASK YOU TO FILL OUT THE SPACE. PLEASE GO TO THE SPACE AND FILL IT IN AND THEN PRESS SUBMIT AGAIN.</b> </TD></TR>
<tr><td align="right" >City:</td><td> <input type=\"text\" name=\"City\" value=\"$city\" size=32></td></tr></table>);
 
<tr><td><b> PLEASE FILL OUT ALL THE INFORMATION IN THE FORM. IF YOU LEAVE OUT ANY SPACE, THE INFORMATION WILL NOT BE PROCESSED, AND IT WILL IDENTIFY THE SPACE NOT COMPLETED AND WILL ASK YOU TO FILL OUT THE SPACE. PLEASE GO TO THE SPACE AND FILL IT IN AND THEN PRESS SUBMIT AGAIN.</b> </TD></TR>
<tr><td align="[red]right[/red]" >City:</td><td> <input type=\"text\" name=\"City\" value=\"$city\" size=32></td></tr></table>);


Kind Regards
Duncan
 
I am not sure I understand the difference in your "right" and my "right". Please explain. Thanks.
 
I think Dunc was just pointing out that it should be

\"right\" as the inverted commas need to be escaped

--Paul

It's important in life to always strike a happy medium, so if you see someone with a crystal ball, and a smile on their face ...
 
Even I changed the "right" to include \\, it still does not work. There must be something in the statement that does not align the statement.

Please help. Thanks.
 
What exactly do you want to do

Code:
print  qq(<table bgcolor=seashell>
<tr><td [COLOR=red]colspan=2[/color]><b> PLEASE FILL OUT ALL THE INFORMATION IN THE FORM. IF YOU LEAVE OUT ANY SPACE, THE INFORMATION WILL NOT BE PROCESSED, AND IT WILL IDENTIFY THE SPACE NOT COMPLETED AND WILL ASK YOU TO FILL OUT THE SPACE. PLEASE GO TO THE SPACE AND FILL IT IN AND THEN PRESS SUBMIT AGAIN.</b> </TD></TR>
<tr><td align=right>City:</td><td> <input type="text" name="City" value="$city" size=32></td></tr></table>);

Is this what you want

It's important in life to always strike a happy medium, so if you see someone with a crystal ball, and a smile on their face ...
 
Thanks, it worked. I really appreciate your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top