Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>for making responsive table i usually use another style not of bootstrap</p> <pre><code> &lt;style&gt; #page-wrap { margin: 50px; } p { margin: 20px 0; } /* Generic Styling, for Desktops/Laptops */ table { width: 100%; border-collapse: collapse; } /* Zebra striping */ tr:nth-of-type(odd) { background: #eee; } th { background: #333; color: white; font-weight: bold; } td, th { padding: 6px; border: 1px solid #ccc; text-align: left; } &lt;/style&gt; &lt;!--[if !IE]&gt;&lt;!--&gt; &lt;style&gt; /* Max width before this PARTICULAR table gets nasty This query will take effect for any screen smaller than 760px and also iPads specifically. */ @media only screen and (max-width: 760px), (min-device-width: 768px) and (max-device-width: 1024px) { /* Force table to not be like tables anymore */ table, thead, tbody, th, td, tr { display: block; } /* Hide table headers (but not display: none;, for accessibility) */ thead tr { position: absolute; top: -9999px; left: -9999px; } tr { border: 1px solid #ccc; } td { /* Behave like a "row" */ border: none; border-bottom: 1px solid #eee; position: relative; padding-left: 50%; } td:before { /* Now like a table header */ position: absolute; /* Top/left values mimic padding */ top: 6px; left: 6px; width: 45%; padding-right: 10px; white-space: nowrap; } /* Label the data */ td:nth-of-type(1):before { content: "First Name"; } td:nth-of-type(2):before { content: "Last Name"; } td:nth-of-type(3):before { content: "Job Title"; } td:nth-of-type(4):before { content: "Favorite Color"; } td:nth-of-type(5):before { content: "Wars of Trek?"; } td:nth-of-type(6):before { content: "Porn Name"; } td:nth-of-type(7):before { content: "Date of Birth"; } td:nth-of-type(8):before { content: "Dream Vacation City"; } td:nth-of-type(9):before { content: "GPA"; } td:nth-of-type(10):before { content: "Arbitrary Data"; } } /* Smartphones (portrait and landscape) ----------- */ @media only screen and (min-device-width : 320px) and (max-device-width : 480px) { body { padding: 0; margin: 0; width: 320px; } } /* iPads (portrait and landscape) ----------- */ @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) { body { width: 495px; } } &lt;/style&gt; &lt;!--&lt;![endif]--&gt; </code></pre> <p>and html</p> <pre><code> &lt;div id="page-wrap"&gt; &lt;table&gt; &lt;thead&gt; &lt;tr&gt; &lt;th&gt;First Name&lt;/th&gt; &lt;th&gt;Last Name&lt;/th&gt; &lt;th&gt;Job Title&lt;/th&gt; &lt;th&gt;Favorite Color&lt;/th&gt; &lt;th&gt;Wars or Trek?&lt;/th&gt; &lt;th&gt;Porn Name&lt;/th&gt; &lt;th&gt;Date of Birth&lt;/th&gt; &lt;th&gt;Dream Vacation City&lt;/th&gt; &lt;th&gt;GPA&lt;/th&gt; &lt;th&gt;Arbitrary Data&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;James&lt;/td&gt; &lt;td&gt;Matman&lt;/td&gt; &lt;td&gt;Chief Sandwich Eater&lt;/td&gt; &lt;td&gt;Lettuce Green&lt;/td&gt; &lt;td&gt;Trek&lt;/td&gt; &lt;td&gt;Digby Green&lt;/td&gt; &lt;td&gt;January 13, 1979&lt;/td&gt; &lt;td&gt;Gotham City&lt;/td&gt; &lt;td&gt;3.1&lt;/td&gt; &lt;td&gt;RBX-12&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;The&lt;/td&gt; &lt;td&gt;Tick&lt;/td&gt; &lt;td&gt;Crimefighter Sorta&lt;/td&gt; &lt;td&gt;Blue&lt;/td&gt; &lt;td&gt;Wars&lt;/td&gt; &lt;td&gt;John Smith&lt;/td&gt; &lt;td&gt;July 19, 1968&lt;/td&gt; &lt;td&gt;Athens&lt;/td&gt; &lt;td&gt;N/A&lt;/td&gt; &lt;td&gt;Edlund, Ben (July 1996).&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Jokey&lt;/td&gt; &lt;td&gt;Smurf&lt;/td&gt; &lt;td&gt;Giving Exploding Presents&lt;/td&gt; &lt;td&gt;Smurflow&lt;/td&gt; &lt;td&gt;Smurf&lt;/td&gt; &lt;td&gt;Smurflane Smurfmutt&lt;/td&gt; &lt;td&gt;Smurfuary Smurfteenth, 1945&lt;/td&gt; &lt;td&gt;New Smurf City&lt;/td&gt; &lt;td&gt;4.Smurf&lt;/td&gt; &lt;td&gt;One&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Cindy&lt;/td&gt; &lt;td&gt;Beyler&lt;/td&gt; &lt;td&gt;Sales Representative&lt;/td&gt; &lt;td&gt;Red&lt;/td&gt; &lt;td&gt;Wars&lt;/td&gt; &lt;td&gt;Lori Quivey&lt;/td&gt; &lt;td&gt;July 5, 1956&lt;/td&gt; &lt;td&gt;Paris&lt;/td&gt; &lt;td&gt;3.4&lt;/td&gt; &lt;td&gt;3451&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Captain&lt;/td&gt; &lt;td&gt;Cool&lt;/td&gt; &lt;td&gt;Tree Crusher&lt;/td&gt; &lt;td&gt;Blue&lt;/td&gt; &lt;td&gt;Wars&lt;/td&gt; &lt;td&gt;Steve 42nd&lt;/td&gt; &lt;td&gt;December 13, 1982&lt;/td&gt; &lt;td&gt;Las Vegas&lt;/td&gt; &lt;td&gt;1.9&lt;/td&gt; &lt;td&gt;Under the couch&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;/div&gt; </code></pre> <p>hope this will work for you </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.
    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.
    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