In the name of progress (and learning), how can I get rid of tables from my code and achieve the same layout?
For example, here is my table:
<table cellspacing="0px"> <tr> <td> <img src="http://www.poltairhomes.com/images/footerlogo.png" /> </td> <td id="footertext"> <p>Poltair Homes Plc<br />Registered Office: The Old Chapel, Greenbottom, Truro, Cornwall, TR4 8QP.<br />Registered in England & Wales: 3955425<br />www.poltairhomes.com<br />info@poltairhomes.com</p> </td> <td id="footertext"> <p>Terms and Conditions | Privacy Policy | Sitemap</p> </td> <td id="footertext"> <p>SIGN UP FOR OUR NEWSLETTER:</p> <img src="http://www.poltairhomes.com/images/signup(temp).png" /> </td> </tr> </table>
And the corresponding CSS:
.footertext { margin: 0; padding:0 5px 0 5px; color: #AAA; font-size: 10px; font-family:Arial, Helvetica, sans-serif; text-align:center; border-left: 1px solid #CCC; }
http://jsfiddle.net/userdude/tYjKw/
html css table
bigtoothmedia
source share