PHP & HTML - echo li tag without break line : <p>i have this code:</p>

<pre><code> &lt;ol&gt;
    &lt;?php foreach ($articles as $article) { ?&gt;
    &lt;li&gt;
        &lt;img src="public_html/images/example.jpg" height="250" width="250"&gt;
        &lt;br /&gt;
        &lt;a href="public_html/article.php?id=&lt;?php echo 
$article['article_id'];?&gt;"&gt;
            &lt;?php echo $article['article_title'];?&gt;
        &lt;/a&gt;
        - &lt;small&gt;
            posted &lt;?php echo date('l jS', $article['article_timestamp'])?&gt;
        &lt;/small&gt;
    &lt;/li&gt;
    &lt;?php } ?&gt;
&lt;/ol&gt;
</code></pre>

<p>now it's print my in this way: </p>

<pre><code>img
title 
img
title
...
</code></pre>

<p>and i want it's print my like this: </p>

<pre><code>img      img     img     ...
title    title   title
</code></pre>

<p>i try to break line or use in div tag but it's don't work.
how can I do this?</p>

<p>thank's</p>
