Previous Message
Next Message

rtl and ltr text

Sent by Bradley Wright on 7 September 2006 08:08


Ideally, you should be using something like:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN" 
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="he">
	<head>
		<title>Language Test</title>
		<meta http-equiv="content-type" content="text/html; charset=utf-8">
	</head>
	<body>
		<p>ר×ש ××××ת ×××קר ××××£ ××××××¢×× ××××"×, ת×"× ××ס×<span 
lang="en">English words</span>×××ש×××; ××××£ ××× ××××× ×§××,</p>
	</body>
</html>]

(don't ask me about that Hebrew--I cut it from a website I found :)

Also, in an ideal CSS world (since this is a CSS list), you would use 
the following selectors:

body { direction: rtl; }
span[lang=en] { direction: ltr; }

But I have a feeling that browsers should deal with that direction stuff 
automatically anyway.

Brad
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt
Previous Message
Next Message

Message thread: