Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p><code>&lt;p&gt;</code> tags are block-level elements. Use an inline element such as <code>&lt;span&gt;</code>:</p> <pre class="lang-html prettyprint-override"><code>&lt;div class="footer content"&gt; &lt;img src="Images/facebook.png" /&gt; &lt;img src="Images/twitter.png"&gt; &lt;span&gt; Address line 1 Address line 2 Address line 3 &lt;/span&gt; &lt;/div&gt; </code></pre> <p>Alternatively, if you're able to use CSS, you can define both elements as <code>inline-block</code>:</p> <pre class="lang-css prettyprint-override"><code>.footer.content &gt; img, .footer.content &gt; p { display: inline-block; } </code></pre> <p><a href="http://jsfiddle.net/XDRja/1/" rel="noreferrer"><strong>Example 1 jsFiddle</strong></a></p> <p><a href="http://jsfiddle.net/XDRja/" rel="noreferrer"><strong>Example 2 jsFiddle</strong></a></p> <p><strong>EDIT:</strong> It might also be wise for semantics to use <code>&lt;address&gt;</code>, rather than <code>&lt;span&gt;</code>. For example:</p> <pre class="lang-html prettyprint-override"><code>&lt;div class="footer content"&gt; &lt;img src="Images/facebook.png" /&gt; &lt;img src="Images/twitter.png"&gt; &lt;address&gt; Address line 1 Address line 2 Address line 3 &lt;/address&gt; &lt;/div&gt; </code></pre> <p>Since <code>&lt;address&gt;</code> is also a block-level element, you'll need to include the correct CSS as follows:</p> <pre class="lang-css prettyprint-override"><code>.footer.content &gt; img, .footer.content &gt; address { display: inline-block; } </code></pre> <p><a href="http://jsfiddle.net/2LBYy/" rel="noreferrer"><strong>Final jsFiddle example</strong></a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload