Link to home
Start Free TrialLog in
Avatar of munt
munt

asked on

IE5 does not do right-alignment?

I am having this problem where the text messages get correctly right-aligned in both IE4 and Navigator 4, but IE5 seems to ignore the alignment tag and displays in left-justification.

The following is a segment of the code concerned:

<div align=right style="position: absolute; top: 20; overflow: none; text-align: right;">

{ display text }

</div>

Anyone has any ideas here why and how to resolve it?

Thanks.
Munt
ASKER CERTIFIED SOLUTION
Avatar of CJ_S
CJ_S
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of HolySpirit
HolySpirit

munt,
i think u can add a pair of <p> tag to specify the right alignment :
<p align = right>
<div align=right style="position: absolute; top: 20; overflow: none">
{ display text }
</div>
</p>

Can <p> tag make it right justified?
-- Holy Spirit
Avatar of munt

ASKER

HolySpirit,
Thanks for your suggestion - but the <p> tag does not work.

CJ S,
Thanks a lot - You were right about the width parameter. Tried width: 100%; and now IE5 aligns correctly.