Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hii i creating a ext js 4 MVC application in which i m displaying multiple images using dataview but i want to break images into rows but m displaying images using XTemplate and my css code is in index.htm file but a m unable to break images into rows. please check my code and suggest me.


What I have tried:

xTemplate for the DataView for displaying multiple images

  

     var imageTemplate = new Ext.XTemplate('<tpl for=".">',
            '<div class="thumb-wrap" id="{name}">',
            '<img src="{url}">',
            '</div>',     
            '</tpl>');



this is my css in  index.htm file

  

    <style type="text/css">
            .thumb-wrap
            {
                float: left;
                margin: 4px;
                margin-right: 0;
                padding: 5px;
                width: 250px;
               display: inline-block;        
            }     
            .thumb-wrap img {
          float: left;
          }
        </style>
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900