...

View Full Version : Resolved Form not staying centered in ap div tag?



SKIN
05-06-2010, 05:08 PM
First off, I am no coding genius. I have learned all of this as I go. This is my third site I have ever made. I can read code and kinda figure out what it is doing. I can kinda write code in dreamweaver and it helps me figure out what I am doing wrong.

I have an ap div tag and then a form tag inside of that. Then I have some php code inside that form. The form does not stay centered on the page. If you resize the page, the form does not move. I want the form to move with the page.

Check it out...
http://gctile.com/test/newpage/contact.php

Also, how would I set the color of the text above each form box? CSS? or could I just do it in the html on the page?

Thanks for the help.

wojo1086
05-06-2010, 05:48 PM
I am no coding master either but I think I may know what to do. According to your css file, the form has an absolute position 52 px from the left and 218 px from the top. As of right now, you're telling the form to be in that position. So, first off, if you want the form in the center of your page, delete "left: 52px;" from "#apDiv1." Then try wrapping <center></center> tags around your form. You can also try putting "margin-left:auto; margin-right:auto;" in your css file insode the "#apDiv1." Quick question, what is "#apDiv2" for?

SKIN
05-06-2010, 05:52 PM
#apDiv2 was an accident I guess. I will try your suggestion and post back.

SKIN
05-07-2010, 03:44 PM
delete "left: 52px;" from "#apDiv1."

That worked. Thanks wojo!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum