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

May 6th, 2010, 06: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...

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.

May 6th, 2010, 06: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?

May 6th, 2010, 06:52 PM
#apDiv2 was an accident I guess. I will try your suggestion and post back.

May 7th, 2010, 04:44 PM
delete "left: 52px;" from "#apDiv1."

That worked. Thanks wojo!