Rowby Goren
asked on
Why isn't this form centered?
Hello,
I created a form that needs to be centered horizontally on the page. But I'm not getting it quite right. It's flush left.
Here's a link to the demo page: Link to page with form.
Here's the css I am using unsuccessfully:
Rowby
I created a form that needs to be centered horizontally on the page. But I'm not getting it quite right. It's flush left.
Here's a link to the demo page: Link to page with form.
Here's the css I am using unsuccessfully:
div#FormCentering {
width: 1011px;
}
form#chronoform_contactus {
width: 300px;
margin-left: auto ;
margin-right: auto ;
}
Looking forward to your solution...Rowby
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi
All of your comments and solutions were helpful not only in this form, but centering divs specifically. So I have split the points.
And now my "form" fields are centered.
Thanks everyone for your help and insights.
Rowby
All of your comments and solutions were helpful not only in this form, but centering divs specifically. So I have split the points.
And now my "form" fields are centered.
Thanks everyone for your help and insights.
Rowby
I usually do not try to style forms, I would personally recommend enclosing the form in a division and centering the division.
I believe that fixing the margins would solve the problem though. Let me know if that works out for you.
- Nikc