I currently have two divs that are positioned close together with no vertical space between them.
However, I am facing an issue where changing the font in my <h1> yoga 2 pro</h1>
element is causing a gap to appear between the two divs. To fix this, I have been using margin-top: -10px;
, but I believe there must be a cleaner solution.
Note: The <h1>
text fits within the div and does not overflow beyond it.
Does anyone know what might be causing this problem?