I would not use the p tag unless its necessary to split up paragraphs. In
which case I would use them in both. But that's your call. Text within a
<dd> is not considered anonymous text. It is valid.
You can style your p within the dd using the following selector
dd p {margin:.25em 0;padding:0} which will give you a top and bottom
margin and a 0 left and right margin. The 0 padding will then allow you to
simply style the dd.
Sandra Clark
==============================
http://www.shayna.com
Training in Cascading Style Sheets and Accessibility
-----Original Message-----
From: Dawson, Michael [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 21, 2006 6:57 PM
To: CF-Talk
Subject: SOT: HTML DL and P Nesting
This is something that has always bugged me for the sake of consistency...
If I have a definition list such as:
<dl>
<dt>Term Goes Here</dt>
<dd>The long definition goes here</dd> </dl>
Then, I have a definition list with two paragraphs such as:
<dl>
<dt>Term Goes Here</dt>
<dd>
<p>The long definition goes here</p>
<p>The second line goes here</p>
</dd>
</dl>
Now, these two lists are not consistent in the use of the <p> tag. The
first example does not use <p> but the second example does, if only to break
the paragraphs apart.
So, how do you handle these cases? Do you always use a <p> tag even if
there would only be one paragraph within the <dd> tag?
Or, do you just keep it brief and not use a <p> tag unless you have more
than one paragraph?
If I always use the <p> tag, then I know my CSS styling will be consistent.
Otherwise, I would need to style both my <dd> and <p> tags the same to keep
the same margins and padding.
Thanks
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264862
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4