Previous Message
Next Message

[css-d] Marking up a changelog as a definition list

Sent by Stuart Langridge on 2 July 2003 12:12


I've got a sort of changelog set of data; imagine it looks something like 
this, rendered:
July 2nd, 2003: Posted to css-discuss to ask about this thorny problem.
July 1st, 2003: Tried floating both left, but that breaks if one paragraph is 
longer than the screen.
June 30th, 2003: Tried making both inline, but then you get the whole lot run 
together.

To my mind, in HTML, this should clearly be marked up as a definition list:
<dl>
  <dt>July 2nd, 2003:</dt>
  <dd>Posted to css-discuss to ask about this thorny problem.</dd>
  <dt>July 1st, 2003:</dt>
  <dd>Tried floating both left, but that breaks if one paragraph is
   longer than the screen.</dd>
  <dt>June 30th, 2003:</dt>
  <dd>Tried making both inline, but then you get the whole lot run
   together.</dd>
</dl>

But, given that, how do I display the text as the top example?
At first I thought: make both dt and dd display: inline, but of course that 
doesn't work because then it looks like this:

July 2nd, 2003: Posted to css-discuss to ask about this thorny problem. July 
1st, 2003: Tried floating both left, but that breaks if one paragraph is
longer than the screen. June 30th, 2003: Tried making both inline, but then 
you get the whole lot run together.

Then I thought of doing dt { float: left; clear: left; } dd {float: left; }
which works fine as long as none of your dds wrap. If they do, then it looks 
like this:

July 2nd, 2003: Posted to css-discuss to ask about this thorny problem.
July 1st, 2003: 
    Tried floating both left, but that breaks if one paragraph is
    longer than the screen.
June 30th, 2003: 
    Tried making both inline, but then you get the whole lot run
    together.

So, I'm now a bit stuck. What I really want to be able to do is say "make them 
both inline, but linebreak after the dd", but that's not thinking about things 
in the right way. :)

I'm open to suggestions...

sil

-- 
Penelope Pitstop: Ohhh, it's my arch enemy, the Hooded Claw!
The Hooded Claw: Who did you expect? Dick Dastardly?
           -- The Perils of Penelope Pitstop, "Jungle Jeopardy"
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: