0
how can I align whole form to center?
forms
8 Antworten
+ 2
Ignore the deprecated 'align' property and use CSS (adjust width to suit your requirements):
form {
margin: 0 auto;
width:450px;
}
+ 2
So for a responsive solution would you recommend replacing pixels with % in the CSS solution or the align property?
+ 2
Yes, that and in combination with @media max-width and min-width. The best option if you're building a responsive design is using a framework.
+ 1
Hi Zinc, fairly new to this so thought I would ask for my own learning. Does this method react to screen size?
+ 1
It's not responsive if its fixed width is larger than the screen.
+ 1
You can use
<form align="center">
+ 1
u can use <form align="center"> with some margin
0
On the opening form tag use the code below.
<form align="center">