Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Strange offset empty space in IE7?

I'm now developing a website, I have a header as usual. But there is a problem in search textBox input with IE7. When I look at there with IE developer tools I see strange LEFT offset this is what the problem is actually. Any helps appreciated. enter image description here

This is where you can see the problem

source code(.rar)

like image 381
beratuslu Avatar asked Dec 27 '22 06:12

beratuslu


1 Answers

add display:inline; to #searchBox

and addjust 1 or 2 px width of your button, problem will be solved

this problem arise in IE6 & 7, its called double float margin bug, when you apply margin to the first floating element, its margen get doubled in IE6 & 7.

like image 99
Pal Singh Avatar answered Jan 14 '23 07:01

Pal Singh