
Originally Posted by
cbVision
Set the following style your whatever is wrapping your content:
Alright, now my table stay centered but it still shrinks.
What am i doing wrong?
Code:
<!DOCTYPE html>
<html>
<head>
<style>
#table_skeleton {width:70%;margin:0 auto;}
#menu {padding-left:0%;list-style-type:none;text-align:center;}
li {border-bottom:2px solid black;}
</style>
</head>
<body style="background-color:black;">
<table id="table_skeleton" cellpadding="5" cellspacing="2">
<tr>
<td colspan="2" style="background-color:blue;color:white;text-align:center;">
<h1>Title</h1>
</td>
</tr>
<tr valign="top">
<td style="background-color:white;width:120px;">
<ul id="menu">
<li>Dildos</li>
<li>Lubrifiants</li>
<li>Straps</li>
<li>Condoms</li>
</ul>
</td>
<td style="background-color:white;">
<div style="padding-left:auto;border:2px solid black;width:190px;>
<a href="http://www.google.ca/"><img src="test.png" height="150px"/></a>
</div>
</td>
</tr>
<tr>
<td colspan="2" style="background-color:blue;text-align:center;color:white;">
Copyright © </td>
</tr>
</table>
</body>
</html>
Bookmarks