|
Posted by Jonathan N. Little on 02/27/07 16:44
Bob wrote:
> On Feb 26, 4:52 pm, "Andy Dingley" <ding...@codesmiths.com> wrote:
>> On 26 Feb, 09:48, "Bob" <Go1...@Yahoo.Com> wrote:
>>
>>> I have a number of items that I'm listing row by row...
>> So think about using one of the HTML list elements: <ul>, <ol>, <dl>
>> or <menu>
>>
>> <menu> is deprecated, so forget that.
>>
>> <ol> implies some sense of "ordering", whcih I don't think you need
>> here.
>>
>> <ul> works, for a simple list of atomic elements. Nearly every HTML
>> list ought to be a <ul>.
>>
>> <dl> is interesting though, because it has two distinct valid
>> children, <dt> and <dd> and there's already some vague implicit
>> coupling between <dt>(s) and the following <dd>(s). There's also
>> indication in the HTML spec that the notion of "definition list" is
>> very vague and can be ignored.
>>
>> So I'd use <dl> and I'd have markup like this:
>>
>> <dl>
>> <dt>Apples</dt>
>> <dd>These are the finest apples from Washington State and were picked
>> by virgins wearing gloves made of virgin wool.</dd>
>>
>> <dt>Oranges</dt>
>> <dd>Gathered by those funny orange-skinned chaps who do the TV
>> antiques programs.</dd>
>> </dl>
>
> All my descriptions, both short and long are in tables....
>
Easy *don't* put them in tables. They shouldn't be....
Jukka's solution is the correct one...
STYLE:
h2 { font-size: 100%; font-weight: normal; margin: 1em 0 0 0; }
p { margin: 0 0 0.6em 2em; }
HTML:
<h2>Apples</h2>
<p>These are the finest apples from Washington State.</p>
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
[Back to original message]
|