PDA

View Full Version : Centering a form in the footer


kammerman
Apr-29-2006, 10:35 AM
Hi All,

I'm in the process of customizing my site.

I need help centering a form in the footer. I tried various "center" tags, but none did the trick.

I was, however, able to center the remaining text.


My site: bigtrain.smugmug.com (http://bigtrain.smugmug.com)


Thank you for your help,

Lisa

ivar
Apr-29-2006, 10:43 AM
Hi All,

I'm in the process of customizing my site.

I need help centering a form in the footer. I tried various "center" tags, but none did the trick.

I was, however, able to center the remaining text.


My site: bigtrain.smugmug.com (http://bigtrain.smugmug.com)


Thank you for your help,

Lisa


Hi Lisa,

easiest way probably, is to add the green, that should center it up for you:

<div align="center"><h3><font size="3">Join the Big Train Photos mailing list!</font></h3>
<p><font size=2 face="Arial"><b>Email:</b></font>
<input type=text name="ea" size=25>
<input type=hidden name="m" value="1011102843826">
<input type=hidden name="p" value="oi">
<input type=submit name="go" value="Go">
</font></td></tr>
</table></form></div>

kammerman
Apr-29-2006, 10:54 AM
Hi Lisa,

easiest way probably, is to add the green, that should center it up for you:

<div align="center"><h3><font size="3">Join the Big Train Photos mailing list!</font></h3>
<p><font size=2 face="Arial"><b>Email:</b></font>
<input type=text name="ea" size=25>
<input type=hidden name="m" value="1011102843826">
<input type=hidden name="p" value="oi">
<input type=submit name="go" value="Go">
</font></td></tr>
</table></form></div>



Ivan,

Thank you for replying so quickly.

Tried it, didn't work.

Should I get rid of the table?

Lisa

ivar
Apr-29-2006, 11:03 AM
Ivan,

Thank you for replying so quickly.

Tried it, didn't work.

Should I get rid of the table?

LisaYes, you are right, i forgot to copy a part of your code, sorry 'bout that; This is what it should look like in the end:<div align="center"><form name="ccoptin" action="http://ccprod.roving.com/roving/d.jsp" target="_blank" method="post">
<table style="border-collapse: collapse;" border="0" bordercolor="black" cellpadding="3" cellspacing="0">
<tbody><tr><td align="center">

<h3><font size="3">Join the Big Train Photos mailing list!</font></h3>
<p><font face="Arial" size="2"><b>Email:</b></font>
<input name="ea" size="25" type="text">
<input name="m" value="1011102843826" type="hidden">
<input name="p" value="oi" type="hidden">
<input name="go" value="Go" type="submit">
</p></td></tr>
</tbody></table></form></div>

kammerman
Apr-29-2006, 11:16 AM
Thank you!

That did the trick. Coding sometimes makes me bonkers. What works for my portrait website doesn't work her.


What is tbody? it's new to me. Time to pull out my CSS text.

Lisa

ivar
Apr-29-2006, 11:19 AM
Thank you!

That did the trick. Coding sometimes makes me bonkers. What works for my portrait website doesn't work her.


What is tbody? it's new to me. Time to pull out my CSS text.

LisaIt's a table-thing, but i try to stay away from tables as much as possible :lol3

kammerman
Apr-29-2006, 11:22 AM
It's a table-thing, but i try to stay away from tables as much as possible :lol3
Ok, thanks. That's why I started teaching myself CSS a year or so ago.

Take care,
Lisa