How to avoid negative margin in code review

How to avoid negative margin in code review
As coding standard we are not allowed to use negative margin in substitute to negative margin position property can be used and its values can be declare so that it will not effect zooming these will be effective for smaller elements an may not be effected for large elements like tables but can be use accordingly

EX:

margin-top: -2px; Better use position: relative;
top: -2px;

Leave a comment

Your email address will not be published. Required fields are marked *