When I add indentation to my HTML code, it results in extra whitespace between elements on different lines.
<div id="nbcntcnt">
<a href="notset.html" class="nbcntbutton" id="snbb">Overview</a>
<a href="notset.html" class="nbcntbutton">Technical Specs</a>
<a href="notset.html" class="nbcntbutton">Compare</a>
<a href="notset.html" class="nbcntbutton">Switch to Pixel</a>
</div>
Result of the given Code: https://i.sstatic.net/IZkfi.jpg
Upon closer inspection, you can notice the spacing between each link. Removing the indentation eliminates these whitespaces. Is there a way to remove them without sacrificing clean code?
edit: The issue is not related to CSS. Even after completely removing CSS from the website, the problem persists (as evident when running the code snippet).