Re: Key/Item data

----- Original Message -----
From: "Philip TAYLOR [PC336/H-XP]" <P.Taylor@Rhul.Ac.Uk>
To: "Graph Dept." <graph@adetti.net>
Cc: <www-html@w3.org>
Sent: Monday, March 10, 2003 5:46 PM
Subject: Re: Key/Item data


> Modulo good support for -- and use of -- CSS,
> <table><tr><td></td><td></td>></tr></table>
> will look better (i.e., align properly) whilst
> <dl><dt></dt><dd></dd></dl> will give better
> semantics.

In modern browsers I've come up with a workable CSS solution to align my
<dl> the way I want it:

dl.keyItemPairs
    {
    display:     block;
    }

dl.keyItemPairs dt
    {
    clear:             left;
    display:          block;
    font-weight:    bold;
    float:               left;
    width:            100px;
    }

dl.keyItemPairs dd
    {
    clear:          right;
    display:       block;
    }

There are still a few inadequacies to work out (e.g. it requires me to
manually set the width of the <dt> (key), but I feel it's a good start.

T.

Received on Tuesday, 11 March 2003 10:48:32 UTC