Apologies in advance for what may seem like a simple CSS issue that I couldn't find an answer to on Stackoverflow. Here's the JSfiddle link: https://jsfiddle.net/kwende/fqxna79a/
In the code, you'll see two div tags:
<div id="left">Left</div><div id="right"><p>Right</p><p>Right 2</p></div>
The strange thing is that when you press ENTER between the divs in Chrome and Edge, the green and red blocks no longer align horizontally, despite no changes in CSS or markup. It's puzzling why a line break within the text document affects the rendering of the markup.
For reference:
https://i.stack.imgur.com/0E0tc.png
shows no line breaks, while
https://i.stack.imgur.com/Fj7oa.png
Update: The question seems to have been answered previously. Check out this informative resource: Here