W3C home > Mailing lists > Public > www-style@w3.org > January 1998

forwarded message from Andi Hindle

From: Hakon Lie <howcome@w3.org>
Date: Fri, 30 Jan 1998 12:59:32 +0100 (MET)
Message-Id: <199801301159.MAA11233@stovner.a.sol.no>
To: www-style@w3.org

attached mail follows:


Hi

I'm trying to implement the following style to control the spacing in a
definition list:

<style type="text/css">
<!--

.listbox {padding-top: 1em;
          padding-bottom: 2em;}

-->
</style>


Given the following example HTML snippet:

<dl>
<dt>This is the Definition Term</dt>
<dd class="listbox">
<strong>First Item: </strong>Here is some information<br>
<strong>Second Item: </strong>Here is some more information
</dd>
<dt>This is next Definition Term</dt>

....


I think what should happen is roughly:

This is the Definition Term

     First Item: Here is some information
     Second Item: Here is some information


This is next Definition Term


In other words, I have some space between the first <dt> and the first line
of  the  subsequent <dd>, and I have twice as much space between the end of
the first <dd> and the next <dt>.

MSIE  4.0 seems to handle this fine, and so did NS4.01 (which I had until a
couple  of  days  ago).  However, NS4.04 (to which I just "upgraded", haha)
seems to do something rather more like this:


This is the Definition Term



     First Item: Here is some information
     Second Item: Here is some information
This is next Definition Term



Now,  either  I'm  making  a  basic  mistake in my stylesheet which MSIE is
glossing  over  and  NS is complaining about.  In which case, my apologies;
and  could  someone tell me what I'm doing wrong, please? ;-)  Otherwise, I
have  to  conclude  that  the implementation of CSS in NS4.04 is broken, at
least  in  this  regard.   Can  anyone confirm this (and suggest a possible
solution/workaround!).   It  took me a while to get this to work under both
NS  and MSIE, and now I find that it doesn't work again, which is very very
frustrating!

Many thanks ;-)

Cheers

--&e
Received on Friday, 30 January 1998 06:59:53 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:53:54 GMT