alt131 - 1:00 am on Sep 18, 2011 (gmt 0)
Just to clarify, it's the input - and must be !important (which is usually something to avoid) to override any default stylesheet setting.
@alt131; I haven't rejected the idea of defining line-height on individual divs
I think perhaps "agree to disagree" on validation - EfeBuyuran, from comments over the years I think many regulars here validate as part of their daily coding life. I imagine at least some do because they work to the standards set by the recommendations rather than other coders coding habits. It's personal choice and there are many viewpoints.
However, I'm sure you can recognise that professionals are justified in asking if code is valid as a first step to helping with cross-browser issues given invalid code introduces so many variables and makes issues more time-consuming to solve.
And that has the sound of margin collpasing - which would exdplain why I couldn't reproduce the issue here, and makes it even more intersting. Is it possible to post some more html and css for the surrounding elements?
By erasing the margin values and using padding on container div seemed to reduce the inaccuracy.
[Edit reason:] Grammar!