Why do my HTML form elements move around when clicking on them in IE8?

人盡茶涼 提交于 2019-12-05 14:36:01

I had the exact same problem, and to fix it, I set

display:block

On the element that was jumping around and that fixed it. Hope that helps.

Muhammad Ahsan

Problem is when you focus an input text element, your browser puts 2px border around it for focus which is shifting its position if it is contained in a tight container...

I think it is more related to having 2px border all the times. Use the same color border and your text field to have transparent borders... Your problem is addressed on this question

StackOverflow Question when focusing an input field border 8270380

This is speculation, but since focusing in an element seems to trigger the shifting, you may have different styles applied to those focused elements. Increased margins or borders could be responsible.

I think your structure conflicting with your parent structure CSS (there may possible is you using third party plugin something like jQuery UI or else) do one thing just for confirmation cut or copy your conflicting code and paste out side of you parent structure or beginning of your body tag. you find the difference.

For proper help I want to review you code. Thnx

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!