I just need to know if we can specify with for form tag or we need to put it in a container and give width to that parent element of form tag??
Which approach is valid??
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To the best of my knowledge, a form element behaves a lot like a div in most situations, and so will accept a width, but usually this is just an implied ‘auto’.
According to the Default stylesheet ( http://www.w3.org/TR/CSS2/sample.html ), form naturally is applied display:block, which leads me to believe you can treat it just like any other block element.