CodeIgniter Forums
how to show thumbs images in horizontal row - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: how to show thumbs images in horizontal row (/showthread.php?tid=10769)



how to show thumbs images in horizontal row - El Forum - 08-12-2008

[eluser]schidy[/eluser]
I am trying to use this below code to display thumb images in a line. But output images are printed one below the other.

kindly help me out to identify the problem here..

Code:
<?php foreach($itemlist as $item):?>
            <div class=\"listitems\">
                
                <a >
                    <img >
                    <br>
                    &lt;?php echo $item['content_title'] ;?&gt;</a>
                </div>
        
        &lt;?php endforeach;?&gt;



how to show thumbs images in horizontal row - El Forum - 08-12-2008

[eluser]Sarre[/eluser]
you could add a css rule that floats them "left"
e.g.
<div class=".." style="float:left"></div>


how to show thumbs images in horizontal row - El Forum - 08-12-2008

[eluser]schidy[/eluser]
hey sarre, it worked. thanks.