Solved

IE5 does not do right-alignment?

Posted on 2000-03-26
3
201 Views
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 }

</div>

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

Thanks.
Munt
0
Comment
Question by:munt
3 Comments
 
LVL 22

Accepted Solution

by:
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

like

width:200

0
 
LVL 2

Expert Comment

by:HolySpirit
ID: 2660196
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
0
 

Author Comment

by:munt
ID: 2662478
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.
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…

789 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