- From: Karlsson Kent - keka <keka@im.se>
- Date: Thu, 20 Jan 2000 21:08:14 +0100
- To: W3C HTML <www-html@w3.org>
Received on Thursday, 20 January 2000 15:08:08 UTC
> >TeX (for \em) toggles between italic and upright.
> >How does one write a CSS style to get such toggling
> >behaviour for <em>?
>
> Contextual selectors, e.g.,:
>
> em { font-style: italic }
> em em { font-style: normal }
> em em em { font-style: italic }
> em em em em { font-style: normal }
> /* and so on ad absurdam */
Well, I had hoped for something more elegant that
did not (in principle) go on ad absurdum. Oh, well.
Four levels is likely to be more than enough.
/kent k
Received on Thursday, 20 January 2000 15:08:08 UTC