<div style="color: red">test</div> <div style="color: blue; margin-top: 3px;">test</div> Firefox instead of 3px substitutes its 5px. How to fix?
test
<div style="color: red">test</div> <div style="color: blue; margin-top: 3px;">test</div> Firefox instead of 3px substitutes its 5px. How to fix?
Use:
line-height: 1px; In this regard, Mozilla and IE as if agreed.
Are you sure about this?
Maybe !important help?
<div style="color: blue; margin-top: 3px!important;">test</div> What do you want to get? Not quite clear. In firefox, the distance between divs is exactly 3px
For the text, set the line-height - the inline spacing will be the same everywhere. Also, if it's a div block, nulling the padding can help.
Source: https://ru.stackoverflow.com/questions/162030/
All Articles