M
Marius Greuel
Hello Group,
I am trying to display some HTML code in IE, and I noticed a text alignment
problem that I cannot explain. As a sidenote, Firefox behaves the same, so I
am not sure were the problem lies:
The following HTML code (generated by MS-Word) displays the XYZ right of the
Hebrew text. In MS-Word the XYZ text is left of the Hebrew text, which is
what I expect.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=windows-1255">
<TITLE>úöåâú</TITLE>
</HEAD>
<BODY>
<P dir="RTL"><SPAN dir="RTL">úöåâú</SPAN><SPAN dir="LTR">XYZ</SPAN></P>
</BODY>
</HTML>
Now if I change the P to the following, the text shows correctly:
<P dir="RTL"><SPAN>úöåâú</SPAN><SPAN dir="LTR">XYZ</SPAN></P>
Can someone please explain the why this happens? Is the behavior correct?
I simply assumed that the Hebrew text is already RTL since the P is RTL, so
an extra SPAN with the RTL attribute would not hurt. Of course, I know
diddly squad about HTML rendering, nor do I know Hebrew
I would appreciate any clues.
Thanks,
Marius
I am trying to display some HTML code in IE, and I noticed a text alignment
problem that I cannot explain. As a sidenote, Firefox behaves the same, so I
am not sure were the problem lies:
The following HTML code (generated by MS-Word) displays the XYZ right of the
Hebrew text. In MS-Word the XYZ text is left of the Hebrew text, which is
what I expect.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=windows-1255">
<TITLE>úöåâú</TITLE>
</HEAD>
<BODY>
<P dir="RTL"><SPAN dir="RTL">úöåâú</SPAN><SPAN dir="LTR">XYZ</SPAN></P>
</BODY>
</HTML>
Now if I change the P to the following, the text shows correctly:
<P dir="RTL"><SPAN>úöåâú</SPAN><SPAN dir="LTR">XYZ</SPAN></P>
Can someone please explain the why this happens? Is the behavior correct?
I simply assumed that the Hebrew text is already RTL since the P is RTL, so
an extra SPAN with the RTL attribute would not hurt. Of course, I know
diddly squad about HTML rendering, nor do I know Hebrew
I would appreciate any clues.
Thanks,
Marius