|
Posted by Andrew on 01/26/07 12:59
On Fri, 26 Jan 2007 05:13:31 -0600, Ben C wrote:
> On 2007-01-26, Andrew <andrew@sorrynospam.com> wrote:
>> Hi,
>>
>> Can I have some suggestions for the most syntactically correct way to
>> make a bold heading within a list item? The page I am working on is:
>>
>> http://people.aapt.net.au/~adjlstrong/homer.html
>>
>> I have used the following but I have a few qualms:
>><ul>
>><li><strong>heading</strong>list info</li>
>></ul>
>
> Is the qualm that you'd like the heading to be marked as <h1> or
> something similar?
>
> What you're doing is described in the CSS 2.1 spec as a "run-in header".
>
> Few browsers support display:run-in, but that doesn't matter, you could
> just make your heading <h1> and set ul h1 to display:inline and
> font-weight:bolder, maybe using some classes if that selector's too
> general.
Hi Ben,
Thank you for that. Your idea is so clear I am disappointed that I did
not think of it myself. Now that I can see that it can be done quite
easily with a styled heading element I just have to decide if the
gymnastics of doing it this way outweigh the ease of simply using <strong> :-)
Thanks again,
Andrew
--
The STRONG Family Web Site
http://www.strong-family.org
[Back to original message]
|