Previous Message
Next Message

Re: [css-d] Multiple Languages

Sent by Andrew Clover on 28 January 2002 14:02


Ken Westin [EMAIL-REMOVED]> wrote:

> Has anyone had experiences with using CSS for a multilingual site?

Yes, though not with languages as radically different as English and
Japanese!

> I [...] want a single style sheet, so far my only solution has been to
> use ASP to sniff out the language type and dynamically adjust the CSS
> according to the language type

Why? What properties do you need to change according to language? A robust,
flexible stylesheet should work fine for both, I'd have thought.

If you have fixed-pixel positioning or effects specific to each language
(eg. vertical script in Japanese) it would be sensible to isolate them
in separate stylesheets, with shared properties in a shared sheet. Or
if you must have a single sheet, you could put the language setting in the
HTML:

  <body class="kr"> <!-- this is the Hangul page -->

and write different selectors to detect that:

  body.en div.news { width: 250px; }
  body.jp div.news { width: 220px; }
  body.kr div.news { width: 260px; }

and so on.

Can you give us an idea or example page? What specific problems are you
encountering?

-- 
Andrew Clover
[EMAIL-REMOVED]
http://and.doxdesk.com/
Previous Message
Next Message

Message thread: