This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Stylesheets > February 2004 > Nested tables with borders





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Nested tables with borders
Eric Bohlman

2004-02-26, 9:28 am

What's the correct technique for nesting a bordered table inside of cell of
another bordered table without getting a double-thickness border around the
nested table? This is assuming the collapsing-border model.

An example of where I have a good reason to do this is at
<http://www.wayneengineering.com/lit...sf-settings.php>. In this
case I was able to get away with using ordered lists for the parameters
with enumerated values, but what if the parameters and enumerated values
were named rather than numbered (as they indeed are on another instrument
from the same manufacturer)? In that case a nested two-column (enumerated
value, meaning of value) table would be semantically appropriate.

Lauri Raittila

2004-02-26, 12:32 pm

In article Eric Bohlman wrote:
> What's the correct technique for nesting a bordered table inside of cell of
> another bordered table without getting a double-thickness border around the
> nested table? This is assuming the collapsing-border model.


td > table {border:hidden;}

(> not needed if only two level of tables)

> An example of where I have a good reason to do this is at
> <http://www.wayneengineering.com/lit...sf-settings.php>. In this


You could use rowspan and colspan. I don't think nested tables are
required.

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Saapi lähettää meiliä, jos aihe ei liity ryhmään, tai on yksityinen
tjsp., mutta älä lähetä samaa viestiä meilitse ja ryhmään.

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews