Posted by Ben C on 01/26/07 11:13
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.
[Back to original message]
|