I have a <div> that floats left and a <p> that renders to the right of it. Problem is, there is no spacing between my text and my div. I tried to add margin and padding to both the div and and p but they did not work. I read that I need to first apply inline-block to the p. This made the padding and margin work but it broke the float:left:
<div style="float: left">
<ul>
<li>test1</li>
<li>test1</li>
<li>test1</li>
<li>test1</li>
<li>test1</li>
<li>test1</li>
<li>test1</li>
</ul>
</div>
<p style="margin-left: 15px; display: inline-block;"> Lorem ipsum killer smacks biggie smalls superman ate him good so I forgot to drain the godhead. Lorem ipsum killer smacks biggie smalls superman ate him good so I forgot to drain the godhead. Lorem ipsum killer smacks biggie smalls superman ate him good so I forgot to drain the godhead. Lorem ipsum killer smacks biggie smalls superman ate him good so I forgot to drain the godhead. Lorem ipsum killer smacks biggie smalls superman ate him good so I forgot to drain the godhead. </p>
How to add margin to text and keep float:left of div?