Search code examples
cssoptimizationstandardscss-tables

How to convert the code table to div as the most optimal and standards?


Can you rewrite my code table on the div so that it is the most optimal and consistent with the standards?


Solution

  • Giving you the most basic layout:(P.S. Haven't tried it in browser)

    HTML:

    <div>
             <div class = "forumline bigRow" >
    
                <div class="cat row">
                  {FORUM_NAME}
                </div>
    
                <div class="cat row">
                  {FORUM_DESC}
                </div>
    
    
             </div>
    
        </div>
    

    CSS:

    .bigRow{width:100%;}
    
    .row{width: 100%;}
    

    P.S: This works when I use twitter Bootstrap in my project very well.