Strange behavior for superscript text

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Strange behavior for superscript text

José Carlos Santos
Hi all:

Please consider this HTML file:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="" lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<p>An<sup><i>H</i>&cap;</sup> example</p>

If I see it with Amaya it looks correct: what I get is the word "An"
followed by an italic H and an intersection symbol in superscript and
then a space and the word "example".

Now add the line

<link href="index.css" rel="stylesheet" type="text/css" />

to the header and suppose that the index.css file contains only this line:

p {text-align : justify}

Then something strange happens: the H and the intersection symbol get
moved to the right and are put over the word "example".

Is this a bug? I suppose so.

Best regards,

Jose Carlos Santos