开发者

HTML Form Tag creating extra space in IE 7 and IE 8

开发者 https://www.devze.com 2023-04-12 21:49 出处:网络
I am having an issue withtags in IE 7 and 8 there are some unwanted spaces which I am experiences on these browsers my css snippet.

I am having an issue with tags in IE 7 and 8 there are some unwanted spaces which I am experiences on these browsers my css snippet.

form{margin:0;padding:0;text-align:left;}

This css 开发者_StackOverflow中文版fails only on IE 7 and 8 Please let me what I am doing wrong


Add display : inline; in the css as follows:

form{margin:0;padding:0;text-align:left;display: inline;}


There is a bug in IE7&8 where if a form is preceded by an unclosed <p> tag, it will create an extra box above the form. Closing the <p> should fix the issue.

0

精彩评论

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