tauhui
10-03-2011, 03:30 PM
Hi,
I am tying to make table align in a div tag. I was planning to make a show case for different item by using table. Is there any ways i can do and change in the css stylesheet? :confused:
Your reply is appreciated Thanks a lot.
<style type="text/css">
#tab {
text-align: center;
}
</style>
</head>
<body>
<div id="tab">
<table width="200" border="1" bgcolor="#33FF00" align="left" float="left" margin-left="auto" margin-right="auto">
<tr>
<td>one</td>
</tr>
<tr>
<td>two</td>
</tr>
<tr>
<td>three</td>
</tr>
<tr>
<td>four</td>
</tr>
</table>
<table width="200" border="1" bgcolor="#33FF33">
<tr>
<td>one </td>
</tr>
<tr>
<td>two</td>
</tr>
<tr>
<td>three</td>
</tr>
<tr>
<td>four</td>
</tr>
</table>
<table width="200" border="1" bgcolor="#33FF66" align="right" float="right">
<tr>
<td>one </td>
</tr>
<tr>
<td>two</td>
</tr>
<tr>
<td>three</td>
</tr>
<tr>
<td>four</td>
</tr>
</table>
</div>
</body>
I am tying to make table align in a div tag. I was planning to make a show case for different item by using table. Is there any ways i can do and change in the css stylesheet? :confused:
Your reply is appreciated Thanks a lot.
<style type="text/css">
#tab {
text-align: center;
}
</style>
</head>
<body>
<div id="tab">
<table width="200" border="1" bgcolor="#33FF00" align="left" float="left" margin-left="auto" margin-right="auto">
<tr>
<td>one</td>
</tr>
<tr>
<td>two</td>
</tr>
<tr>
<td>three</td>
</tr>
<tr>
<td>four</td>
</tr>
</table>
<table width="200" border="1" bgcolor="#33FF33">
<tr>
<td>one </td>
</tr>
<tr>
<td>two</td>
</tr>
<tr>
<td>three</td>
</tr>
<tr>
<td>four</td>
</tr>
</table>
<table width="200" border="1" bgcolor="#33FF66" align="right" float="right">
<tr>
<td>one </td>
</tr>
<tr>
<td>two</td>
</tr>
<tr>
<td>three</td>
</tr>
<tr>
<td>four</td>
</tr>
</table>
</div>
</body>