Need to change an HTML Table into a Responsive format (possibly using Flex).
I currently have a massive document occupying a succession of 13 HTML Tables.
Each Table is divided into 4 columns with 5 Rows containing text in each Column.
I need to re-code all of this information into a Responsive Layout so that each Sales Rep (plus their address etc) is contained in a single Flex item or card; and the Items will Wrap when viewed on small devices.
Would anyone be able to point me in the right direction and tell me how best to pack this massive table into a Responsive layout?
Flex-wrap seemed to be a possible method but I haven’t discovered a way to make the Flex-items into Parents holding Children consisting of formatted Text boxes.
I would be incredibly grateful if anyone would have time to look at the attached HTML codes and perhaps provide me with a Snippet of coding using Flex which I could use.
I have left the following Table (empty of text but in position) so that you can get some idea of how this monstrous 13-Table document currently unfolds.
I have also converted the HTML Table into DIVs (which should make it easier to use in Flex Items?) and I am attaching that version as well.
This is the original HTML Table:
<!doctype html5>
<html lang="en">
<head>
<meta charset="UTF-8"/>
</head>
<body>
<br><br><br>
<td align="center" valign="top" width="20" height="100"></td>
<td width="875" height="100" align="center" valign="top">
<div align="center">
<a id="reps_top_page_anchor" name="reps_top_page_anchor"></a></div>
</td>
<br>
<tr align="center" height="51">
<td class="subhead_2" align="center" valign="top" width="875" height="51">
</td>
</tr>
<tr height="51">
<td class="subhead_2" align="left" valign="top" width="875" height="51">
<table width="875" border="2" cellspacing="3" cellpadding="3" align="left" height="156">
<tr>
<td align="center" valign="top" width="205">
<p><span class="Reps_table_Bold"><span>Alabama</span></span></p>
</td>
<td align="center" valign="top" width="205">
<p><span class="Reps_table_Bold"><span>Arizona</span></span></p>
</td>
<td align="center" valign="top">
<p><span class="Reps_table_Bold"><span>Arkansas</span></span></p>
</td>
<td align="center" valign="top" width="205">
<p><span class="Reps_table_Bold"><span>California - North</span></span></p>
</td></tr>
<tr>
<td align="center" width="205">
<p>Southeast Engineered & Custom Components</p>
</td>
<td class="Reps_table" align="center" width="205">
<p><span>Alan LaFontaine</span></p>
</td>
<td class="Reps_table" align="center">
<p>J.L. Gordon and Son, Inc.</p>
</td>
<td class="Reps_table" align="center" width="205">
<p>Aregger Associates</p>
</td></tr>
<tr>
<td align="center" width="205">
<p>Phone: 770-331-4608</p>
</td>
<td class="Reps_table" align="center" width="205">
<p>Phone: 480-966-6074</p>
</td>
<td class="Reps_table" align="center">
<p>Phone: 903-465-6080</p>
</td>
<td align="center" width="205">
<p>Phone: 415-927-2425</p>
</td></tr>
<tr>
<td align="center" width="205">
<p>Fax: </p>
</td>
<td class="Reps_table" align="center" width="205">
<p>Fax: 480-966-4522</p>
</td>
<td class="Reps_table" align="center">
<p>Fax: 903-465-6089</p>
</td>
<td align="center" width="205">
<p>Fax: 415-924-3817</p>
</td>
</tr>
<tr>
<td align="center" valign="middle" width="205">
<p align="center"><a href="http://www.seccinc.net" target="blank"><span class="Reps_sites"><span>www.seccinc.net</span></span></a></p>
</td>
<td class="Reps_table" width="205">
<p align="center">----</p>
</td>
<td>
<p align="center"><a href="http://www.jlgordonandson.com" target="_blank"><span class="Reps_sites">www.jlgordonandson.com</span></a></p>
</td>
<td width="205">
<p align="center">----</p>
</td>
</tr>
</table>
</td></tr>
<tr height="51">
<td class="subhead_2" align="left" valign="top" width="875" height="51">
<table width="875" border="2" cellspacing="3" cellpadding="3" align="left" height="156">
<tr>
<td align="center" valign="top" width="205">
</td></tr>
</table></td></tr>
</body></html>And this is the same Table converted to DIVs:
<!doctype html5>
<html>
<head>
<meta charset="UTF-8">
<title> Sales Representativest</title>
<link href="../style/DIV-Table.css" rel="stylesheet" type="text/css">
<!--The following script tag downloads a font from the Adobe Edge Web Fonts server for use within the web page. We recommend that you do not modify it.--><script>var __adobewebfontsappname__="dreamweaver"</script><script src="http://use.edgefonts.net/source-sans-pro:n2,n6,n4:default.js" type="text/javascript"></script>
</head>
<body>
<div align="center"><a id="reps_top_page_anchor" name="reps_top_page_anchor"></a></div>
<div class="divTable">
<div class="divTableBody">
<div class="divTableRow">
<div class="divTableCell">
<p><span class="Reps_table_Bold">Alabama</span></p>
</div>
<div class="divTableCell">
<p><span class="Reps_table_Bold">Arizona</span></p>
</div>
<div class="divTableCell">
<p><span class="Reps_table_Bold">Arkansas</span></p>
</div>
<div class="divTableCell">
<p><span class="Reps_table_Bold">California - North</span></p>
</div>
</div>
<div class="divTableRow">
<div class="divTableCell">
<p>Southeast Engineered & Custom Components</p>
</div>
<div class="divTableCell">
<p>Alan LaFontaine</p>
</div>
<div class="divTableCell">
<p>J.L. Gordon and Son, Inc.</p>
</div>
<div class="divTableCell">
<p>Aregger Associates</p>
</div>
</div>
<div class="divTableRow">
<div class="divTableCell">
<p>Phone: 770-331-4608</p>
</div>
<div class="divTableCell">
<p>Phone: 480-966-6074</p>
</div>
<div class="divTableCell">
<p>Phone: 903-465-6080</p>
</div>
<div class="divTableCell">
<p>Phone: 415-927-2425</p>
</div>
</div>
<div class="divTableRow">
<div class="divTableCell">
<p>Fax:</p>
</div>
<div class="divTableCell">
<p>Fax: 480-966-4522</p>
</div>
<div class="divTableCell">
<p>Fax: 903-465-6089</p>
</div>
<div class="divTableCell">
<p>Fax: 415-924-3817</p>
</div>
</div>
<div class="divTableRow">
<div class="divTableCell">
<p align="center"><a href="http://www.seccinc.net" target="blank"><span class="Reps_sites">www.seccinc.net</span></a></p>
</div>
<div class="divTableCell">
<p align="center">----</p>
</div>
<div class="divTableCell">
<p align="center"><a href="http://www.jlgordonandson.com" target="_blank"><span class="Reps_sites">www.jlgordonandson.com</span></a></p>
</div>
<div class="divTableCell">
<p align="center">----</p>
</div>
</div>
</div>
</div>
