IE5 does not do right-alignment?

Posted on 2000-03-26
Last Modified: 2012-05-04
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 }


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

Question by:munt
LVL 22

Accepted Solution

CJ_S earned 50 total points
ID: 2659795
The problem you are facing is that IE 5 needs the width of the div. So try putting in the width element in the style




Expert Comment

ID: 2660196
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 }

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

Author Comment

ID: 2662478
Thanks for your suggestion - but the <p> tag does not work.

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

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Tags from access to excel 3 38
Put radio button in my form but already has components from my database 4 63
html5 auto send email 7 26
Link a VBS to an HTA 6 36
Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question