Note that there are some explanatory texts on larger screens.

plurals
  1. POHow create table only using <div> tag and Css
    primarykey
    data
    text
    <p>I want to create table only using <code>&lt;div&gt;</code> tag and CSS.</p> <p>This is my sample table.</p> <pre><code>&lt;body&gt; &lt;form id="form1"&gt; &lt;div class="divTable"&gt; &lt;div class="headRow"&gt; &lt;div class="divCell" align="center"&gt;Customer ID&lt;/div&gt; &lt;div class="divCell"&gt;Customer Name&lt;/div&gt; &lt;div class="divCell"&gt;Customer Address&lt;/div&gt; &lt;/div&gt; &lt;div class="divRow"&gt; &lt;div class="divCell"&gt;001&lt;/div&gt; &lt;div class="divCell"&gt;002&lt;/div&gt; &lt;div class="divCell"&gt;003&lt;/div&gt; &lt;/div&gt; &lt;div class="divRow"&gt; &lt;div class="divCell"&gt;xxx&lt;/div&gt; &lt;div class="divCell"&gt;yyy&lt;/div&gt; &lt;div class="divCell"&gt;www&lt;/div&gt; &lt;/div&gt; &lt;div class="divRow"&gt; &lt;div class="divCell"&gt;ttt&lt;/div&gt; &lt;div class="divCell"&gt;uuu&lt;/div&gt; &lt;div class="divCell"&gt;Mkkk&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/form&gt; &lt;/body&gt; </code></pre> <p>And Style:</p> <pre><code>&lt;style type="text/css"&gt; .divTable { display: table; width:auto; background-color:#eee; border:1px solid #666666; border-spacing:5px;/*cellspacing:poor IE support for this*/ /* border-collapse:separate;*/ } .divRow { display:table-row; width:auto; } .divCell { float:left;/*fix for buggy browsers*/ display:table-column; width:200px; background-color:#ccc; } &lt;/style&gt; </code></pre> <p>But this table not work with IE7 and below version.Please give your solution and ideas for me. Thanks.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

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