I'm a little confused too- are you talking about a CSS menu that uses tables for its layout (if so, please provide a link), or just how to emulate a table using CSS?
Tables emulation in CSS is currently very limited as far as what can be done easily. I believe CSS 3 when it's supported addresses those limitations. In the meantime, here's a quick example I came up with of a CSS grid that behaves/ looks like a table. It's just a demo though, and still contains some bugs, but you get the idea:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<style type="text/css">
.cssgridCols{
border-left: 1px solid black;
}
.cssgridCols ul{
float: left;
width: 23%;
list-style-type: none;
margin: 0;
padding: 0;
}
.cssgridCols ul li{
padding: 2px;
text-align: left;
background-color: #FFFFC1;
border: 1px solid black;
border-width: 0 1px 1px 0;
}
.cssgridCols ul li.header{
border-top: 1px solid black;
background-color: #FDD700;
font-weight: bold;
}
</style>
<body>
<br />
<div class="cssgridCols" style="width: 600px;">
<ul class="firstcol">
<li class="header">ddd</li>
<li>ddfd</li>
<li>dfdf</li>
<li>sfsdfsdd</li>
</ul>
<ul>
<li class="header">ddd</li>
<li>ddfd</li>
<li>dfdf</li>
<li>sfsdfsdd</li>
</ul>
<ul>
<li class="header">ddd</li>
<li>ddfd</li>
<li>dfdf</li>
<li>sfsdfsdd</li>
</ul>
<ul>
<li class="header">ddd</li>
<li>ddfd</li>
<li>dfdf</li>
<li>sfsdfsdd</li>
</ul>
<br style="clear: left" />
</div>
<br/>
<br />
<div id="test" class="cssgridCols" style="width: 90%;">
<ul class="firstcol">
<li class="header">ddd</li>
<li>ddfddfsd fs</li>
<li>dfdf</li>
<li>sfsdfsdd</li>
</ul>
<ul>
<li class="header">ddd</li>
<li>ddfd</li>
<li>dfdf</li>
<li>sfsdfsdd</li>
</ul>
<ul>
<li class="header">ddd</li>
<li>ddfd</li>
<li>dfdf</li>
<li>sfsdfsdd</li>
</ul>
<ul>
<li class="header">ddd</li>
<li>ddfd</li>
<li>dfdf</li>
<li>sfsdfsdd</li>
</ul>
<br style="clear: left" />
</div>
Bookmarks