how to put text to right of picture in html
<p>I'm trying to set up separate sections within the body that would show info in them like this</p>
<p><a href="https://i.stack.imgur.com/MaEoZ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MaEoZ.jpg" alt="enter image description here" /></a></p>
<p>using <code>float: left;</code> doesn't help, it only messes up the page layout.</p>
<p>here's my html...</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-css lang-css prettyprint-override"><code>#a,
#g {
  background-color: #6d6d6d;
  color: #bdc3c7;
  list-style: none;
}

#pic {
  margin: +5% 0 0;
  border: 3px solid black;
}

#wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  list-style: none;
}</code></pre>
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div Id="wrapper"&gt;
  &lt;section&gt;
    &lt;ul id="a"&gt;
      &lt;li&gt;
        &lt;a href="img/appstore.jpg"&gt;
          &lt;img src="img/appstore.jpg" alt="" width=180px id="pic"&gt;
          &lt;p&gt;info&lt;/p&gt;
        &lt;/a&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/section&gt;

  &lt;section&gt;
    &lt;ul id="g"&gt;
      &lt;li&gt;
        &lt;a href="img/googleplay.jpg"&gt;
          &lt;img src="img/googleplay.jpg" alt="" width=180px id="pic"&gt;
          &lt;p&gt;info&lt;/p&gt;
        &lt;/a&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/section&gt;
&lt;/div&gt;</code></pre>
</div>
</div>
</p>