Menu
Hello,
I need to convert a 2 rows, 7 columns Table into CSS but I have no idea how to deal with the tags and containers blablabla.
Any help would be very appreciated for this.
Currently, I have it in basic HTML and this is how it looks like:
[CODE]<table width="750" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="750" height="1" bgcolor="E0E0E0"><img src="../../spacers/transparent_1_1.gif" alt="" width="1" height="1" /></td>
</tr>
</table>
<table width="750" height="125" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="1" bgcolor="#E0E0E0"><img src="../../spacers/transparent_1_1.gif" alt="" width="1" height="1" /></td>
<td width="100" height="80"><div align="center"><a href="http://www.taobao.com" target="_blank"><img src="111.jpg" width="75" height="75" border="0" /></a><br />
</div></td>
<td width="8" height="80"> </td>
<td width="100" height="80"><div align="center"><a href="http://www.taobao.com" target="_blank"><img src="PEL644BDWa.jpg" width="75" height="75" border="0" /></a><br />
</div></td>
<td width="8" height="80"> </td>
<td width="100" height="80"><div align="center"><a href="http://www.taobao.com" target="_blank"><img src="PEL644DWa.jpg" width="75" height="75" border="0" /></a><br />
</div></td>
<td width="8" height="80"> </td>
<td width="100"><div align="center"><a href="http://www.taobao.com" target="_blank"><img src="PPL351BDW9a.jpg" width="75" height="75" border="0" /></a></div></td>
<td width="8"> </td>
<td width="100" height="80"><div align="center"><a href="http://www.taobao.com" target="_blank"><img src="PPL351BDW9a.jpg" width="75" height="75" border="0" /></a><br />
</div></td>
<td width="8" height="80"> </td>
<td width="100" height="80"><div align="center"><a href="http://www.taobao.com" target="_blank"><img src="PPL351DW11a.jpg" width="75" height="75" border="0" /></a><br />
</div></td>
<td width="8"> </td>
<td width="100" height="80"><div align="center"><a href="http://www.taobao.com" target="_blank"><img src="PEL644BDWa.jpg" width="75" height="75" border="0" /></a></div></td>
<td width="1" bgcolor="#E0E0E0"><img src="../../spacers/transparent_1_1.gif" alt="" width="1" height="1" /></td>
</tr>
<tr valign="top">
<td width="1" bgcolor="#E0E0E0"><img src="../../spacers/transparent_1_1.gif" alt="" width="1" height="1" /></td>
<td width="100" height="20"><div align="center"> <a href="http://www.taobao.com" target="_blank" class="style1">7MM White Gold </a></div></td>
<td width="8" height="20"> </td>
<td width="100" height="20"><div align="center" class="style1"> <a href="http://www.taobao.com" target="_blank">In Motion WG Akoya </a></div></td>
<td width="8" height="20"> </td>
<td width="100" height="20"><div align="center"> <a href="http://www.taobao.com" target="_blank" class="style1">In Motion White Gold </a></div></td>
<td width="8" height="20"> </td>
<td width="100" height="20"><div align="center"><a href="http://www.taobao.com" target="_blank" class="style1">8MM White Gold</a></div></td>
<td width="8" height="20"> </td>
<td width="100" height="20"><div align="center"> <a href="http://www.taobao.com" target="_blank" class="style1">8MM White Gold</a></div></td>
<td width="8" height="20"> </td>
<td width="100" height="20"><div align="center"> <a href="http://www.taobao.com" target="_blank" class="style1">8MM Silver </a></div></td>
<td width="8" height="20"> </td>
<td width="100" height="20"><div align="center"><a href="http://www.taobao.com" target="_blank" class="style1">In Motion WG Akoya</a></div></td>
<td width="1" bgcolor="#E0E0E0"><img src="../../spacers/transparent_1_1.gif" alt="" width="1" height="1" /></td>
</tr>
</table>
<table width="750" height="125" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="1" height="80" bgcolor="#E0E0E0"><img src="../../spacers/transparent_1_1.gif" alt="" /></td>
<td width="100" height="80"><div align="center"><a href="http://www.taobao.com" target="_blank"><img src="PEL644DWa.jpg" width="75" height="75" border="0" /></a><br />
</div></td>
<td width="8" height="80"><img src="../../spacers/transparent_1_1.gif" alt="" /></td>
<td width="100" height="80"><div align="center"><a href="http://www.taobao.com" target="_blank"><img src="PPL351DW11a.jpg" width="75" height="75" border="0" /></a><br />
</div></td>
<td width="8" height="80"> </td>
<td width="100" height="80"><div align="center"><a href="http://www.taobao.com" target="_blank"><img src="111.jpg" width="75" height="75" border="0" /></a><br />
</div></td>
<td width="8" height="80"> </td>
<td width="100"><div align="center"><a href="http://www.taobao.com" target="_blank"><img src="PEL644BDWa.jpg" width="75" height="75" border="0" /></a></div></td>
<td width="8"> </td>
<td width="100" height="80"><div align="center"><a href="http://www.taobao.com" target="_blank"><img src="PPL351BDW9a.jpg" width="75" height="75" border="0" /></a><br />
</div></td>
<td width="8" height="80"> </td>
<td width="100" height="80"><div align="center"><a href="http://www.taobao.com" target="_blank"><img src="PEL644BDWa.jpg" width="75" height="75" border="0" /></a><br />
</div></td>
<td width="8"> </td>
<td width="100" height="80"><div align="center"><a href="http://www.taobao.com" target="_blank"><img src="PPL351BDW9a.jpg" width="75" height="75" border="0" /></a></div></td>
<td width="1" height="80" bgcolor="#E0E0E0"><img src="../../spacers/transparent_1_1.gif" alt="" width="1" height="1" /></td>
</tr>
<tr valign="top">
<td width="1" height="20" bgcolor="#E0E0E0"><img src="../../spacers/transparent_1_1.gif" alt="" /></td>
<td width="100" height="20"><div align="center"> <a href="http://www.taobao.com" target="_blank" class="style1">7MM White Gold </a></div></td>
<td width="8" height="20"> </td>
<td width="100" height="20"><div align="center" class="style1"> <a href="http://www.taobao.com" target="_blank">In Motion WG Akoya </a></div></td>
<td width="8" height="20"> </td>
<td width="100" height="20"><div align="center"> <a href="http://www.taobao.com" target="_blank" class="style1">In Motion White Gold </a></div></td>
<td width="8" height="20"> </td>
<td width="100" height="20"><div align="center"><a href="http://www.taobao.com" target="_blank" class="style1">8MM White Gold</a></div></td>
<td width="8" height="20"> </td>
<td width="100" height="20"><div align="center"> <a href="http://www.taobao.com" target="_blank" class="style1">8MM White Gold</a></div></td>
<td width="8" height="20"> </td>
<td width="100" height="20"><div align="center"> <a href="http://www.taobao.com" target="_blank" class="style1">8MM Silver </a></div></td>
<td width="8" height="20"> </td>
<td width="100" height="20"><div align="center"><a href="http://www.taobao.com" target="_blank" class="style1">In Motion WG Akoya</a></div></td>
<td width="1" height="20" bgcolor="#E0E0E0"><img src="../../spacers/transparent_1_1.gif" alt="" width="1" height="1" /></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="750" height="1" bgcolor="#E0E0E0"><img src="../../spacers/transparent_1_1.gif" alt="" /></td>
</tr>
</table>[/CODE]
If I came on a forum it's to learn how to do things right; not to be told to do it the jurassic way.[/QUOTE]
I want to convert a table into CSS and nothing else.[/QUOTE]
[CODE]<html>
<body>
<style type="text/css">
*{padding: 0;}
div#main{border: 1px solid #000; display: inline-table; position: relative; width: 750px; text-align: center;}
div.img_box{display: inline-table; width: 80px; margin: 5px 10px;}
img{border: 1px solid #000; height: 80px; width: 80px;}
span.txt1{float: left;}
span.txt2{float: right;}
</style>
<div id="main">
<div class="row">
<div class="img_box"><img src="#" alt="myImage" />
<span class="txt1">txt1</span>
<span class="txt2">txt2</span>
</div>
<div class="img_box"><img src="#" alt="myImage" />
<span class="txt1">txt1</span>
<span class="txt2">txt2</span>
</div>
<div class="img_box"><img src="#" alt="myImage" />
<span class="txt1">txt1</span>
<span class="txt2">txt2</span>
</div>
<div class="img_box"><img src="#" alt="myImage" />
<span class="txt1">txt1</span>
<span class="txt2">txt2</span>
</div>
<div class="img_box"><img src="#" alt="myImage" />
<span class="txt1">txt1</span>
<span class="txt2">txt2</span>
</div>
<div class="img_box"><img src="#" alt="myImage" />
<span class="txt1">txt1</span>
<span class="txt2">txt2</span>
</div>
<div class="img_box"><img src="#" alt="myImage" />
<span class="txt1">txt1</span>
<span class="txt2">txt2</span>
</div>
</div>
<div class="row">
<div class="img_box"><img src="#" alt="myImage" />
<span class="txt1">txt1</span>
<span class="txt2">txt2</span>
</div>
<div class="img_box"><img src="#" alt="myImage" />
<span class="txt1">txt1</span>
<span class="txt2">txt2</span>
</div>
<div class="img_box"><img src="#" alt="myImage" />
<span class="txt1">txt1</span>
<span class="txt2">txt2</span>
</div>
<div class="img_box"><img src="#" alt="myImage" />
<span class="txt1">txt1</span>
<span class="txt2">txt2</span>
</div>
<div class="img_box"><img src="#" alt="myImage" />
<span class="txt1">txt1</span>
<span class="txt2">txt2</span>
</div>
<div class="img_box"><img src="#" alt="myImage" />
<span class="txt1">txt1</span>
<span class="txt2">txt2</span>
</div>
<div class="img_box"><img src="#" alt="myImage" />
<span class="txt1">txt1</span>
<span class="txt2">txt2</span>
</div>
</div>
</div>
</body>
</html>[/CODE]
0.1.9 — BETA 5.15