Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to create table by using div
    primarykey
    data
    text
    <p>I want to create a table like this, but using div instead of table</p> <pre><code>&lt;style type="text/css"&gt; body{ font-family:"Segoe UI", "Tahoma" } td { padding:0px 5px 10px 5px; } .username { white-space:nowrap; vertical-align:top; text-align:right; width:auto; color:DodgerBlue; } &lt;/style&gt; &lt;table width="500px" &gt; &lt;tr&gt; &lt;td class="username"&gt;copperfield&lt;/td&gt; &lt;td&gt;How to create table by using div &lt;/td&gt; &lt;td style="vertical-align:top"&gt;time &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="username"&gt;copperfield&lt;/td&gt; &lt;td&gt; How to create table by using div How to create table by sing div How to create table by to create table by using div &lt;img src="images/thinking.gif"&gt; &lt;/br&gt; &lt;/td&gt; &lt;td style="vertical-align:top"&gt; 8:00 &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="username"&gt; &lt;/td&gt; &lt;td&gt; How to create table by using div&lt;/br&gt; &lt;/td&gt; &lt;td style="vertical-align:top"&gt; 8:00 &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="username"&gt; &lt;/td&gt; &lt;td&gt; How to create table by using div&lt;/br&gt; &lt;/td&gt; &lt;td style="vertical-align:top"&gt; 8:00 &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="username"&gt;michael&lt;/td&gt; &lt;td&gt;&lt;img src="images/thinking.gif"&gt; Gi ku &lt;/td&gt; &lt;td style="vertical-align:top"&gt; 8:00 &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; </code></pre> <p>I try the following code but it is not successful</p> <pre><code> &lt;style type="text/css"&gt; body{ font-family:Segoe UI; } .all{ float:left; display:block; } .chat{ width:700px; float:left; display:table-cell; } .us{ color:blue; text-align:right; float:left; margin-right:10px; } .ct{ white-space:normal; float:left; margin-right:10px; } .t{ float:left; width:auto } &lt;/style&gt; &lt;div class="all"&gt; &lt;div class="chat"&gt; &lt;div class="us"&gt; userna3 46346346me &lt;/div&gt; &lt;div class="ct"&gt; content &lt;/div &gt; &lt;div class="t"&gt; time &lt;/div&gt; &lt;/div&gt; &lt;div class="chat"&gt; &lt;div class="us"&gt; copperfield &lt;/div&gt; &lt;div class="ct"&gt; How to create table by using div How to create table by sing div How to create table by to create table by using div&lt;/div&gt; &lt;div class="t"&gt; 8:00 &lt;/div&gt; &lt;/div&gt; &lt;div class="chat"&gt; &lt;div class="us"&gt; copperfield &lt;/div&gt; &lt;div class="ct"&gt; How to create table by using div Ho &lt;/div&gt; &lt;div class="t"&gt; 8:00 &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    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