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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Datepicker in PHP 9 38
Angular 2 - Issue in page Layout 2 46
.php tree directory? 5 54
CSS Logo Problem. 2 0
Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

929 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now