W3C home > Mailing lists > Public > www-html@w3.org > March 2003

Re: Key/Item data

From: Daniel <tdaniel@adetti.net>
Date: Tue, 11 Mar 2003 09:49:35 -0600
Message-ID: <001701c2e7e5$d106b540$c67e3ed8@adetti.net>
To: "Philip TAYLOR [PC336/H-XP]" <P.Taylor@Rhul.Ac.Uk>
Cc: <www-html@w3.org>

----- 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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:54 GMT