rp
asked on
css center page horizontally
I have several elements, but is left-aligned, how can center on page horizontally.
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.
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.
If your entire page is enclosed in a <form> tag, then the width of that form will dictate the relative centering position of the enclosed elements.
Do you mean its form elements for user input that you want centered?
ASKER
form {
width: 420px;
}