- From: Nir Dagan <nir@nirdagan.com>
- Date: Thu, 20 Jan 2000 14:38:31 -0500
- To: Karlsson Kent - keka <keka@im.se>, W3C HTML <www-html@w3.org>
You can toggle the styles using
em {font-style: italic;}
em em {font-style: normal;}
em em em {font-style: italic;}
em em em em {font-style: normal;}
You can't define the toggling "to any level of nesting" but only
to a finite level in a given CSS style sheet.
At 08:10 PM 1/20/00 +0100, Karlsson Kent - keka wrote:
>
> > I think the main differnce is illustrated as follow. Here
> > I'm comparing
> > <i> elments to <em> elements.
> >
> > <i> this is <i>nested italics</i></i>.
> > <em> this is <em>nested emphisis</em></em>.
> >
> > In the first case, clearly everything should be in italics.
> > In the second case, using <em>, the nested <em> data should
> > be rendered in
> > some other way, commonly a monospaced different font.
>
> TeX (for \em) toggles between italic and upright.
> How does one write a CSS style to get such toggling
> behaviour for <em>?
>
> Kind regards
> /kent k
===================================
Nir Dagan
Assistant Professor of Economics
Brown University
Providence, RI
USA
http://www.nirdagan.com
mailto:nir@nirdagan.com
tel:+1-401-863-2145
Received on Thursday, 20 January 2000 14:36:13 UTC