Is there a way to set a margin for a section of my site without it treating each attribute individually? I want to treat them as one attribute instead. Here's an example:
<div style="background-color: grey; padding: 13px;">
<h1>This part of the site is the menu, this part should be unaffected</h1>
</div>
<div style="float: right;">
<h1>This part should be closer to the left side</h1>
</div>
<h1>This part should be closer to the right side</h1>
I'm trying to bring each side closer together but it doesn't seem to be working as intended.