Forum Moderators: not2easy
HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<meta name="generator" content="HTML Tidy for Windows (vers 1st February 2004), see www.w3.org">
<title>Sean's Live > Home</title>
<link rel="stylesheet" type="text/css" href="Styles.css">
</head>
<body bgcolor="#A5B7DA">
<table class="sidebar">
<tr>
<td class="baritem">My Family</td>
</tr>
<tr>
<td class="baritem">My Friends</td>
</tr>
<tr>
<td class="baritem">News</td>
</tr>
<tr>
<td class="baritem">Aviation</td>
</tr>
<tr>
<td class="baritem">Music</td>
</tr>
<tr>
<td class="baritem">Web Design</td>
</tr>
<tr>
<td class="baritem">Gallery</td>
</tr>
<tr>
<td class="baritem">Fun Junk</td>
</tr>
</table>
</body>
</html>
CSS:
.baritem
{
font-size: 14px;
text-align: center;
float: center;
font-weight: bold;
background-color: #A5B7DA;
color: #19253C;
width: 16.8%;
}
.sidebar
{
font-size: 14px;
text-align: center;
float: left;
width: 16.8%;
font-weight: bold;
background-color: #6986C1;
color: #19253C;
}
float: center;
2. Try setting margin and padding on both elements to 0. More than likely, there is a default margin getting in the way.
3.You've set that table to float, which is something I've never seen before. I imagine it will work fine, but you might consider switching to <div>s if floating the table causes problems.