开发者

Valid to specify width for form tag - either inline or through css?

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??


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜