Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS - Justiy command

Status
Not open for further replies.

Jimuniguy

Technical User
Mar 6, 2002
363
GB
Hi,

In the CSS styles, you can "justify" the text, aka have it flush with both sides.

Works fine in NS4, but won't work in I.E 5.5 (the only ones I have tried so far.

Anyone know why?

Cheers

james
 
This:

.class1 { text-align: justify }

works well in all browsers, including IE5.0 and I don't see a reason why it should not work in IE5.5.

I suspect that there is a problem with css classes inheritance in your code.
 
Hi,

This is the tag, its used within a table. Table is ok in NS 4, not in IE 5.5. Why not????

Code:
.bodytext { font-family: Arial, Helvetica, sans-serif; text-align: justify}

Cheers

James
 
did you apply the class to the <table> tag or the <TD> tag. Make sure its applied to the tag that actually contains your content. Netscape cells inherit from the table tag, not sure if IE55 does this, which is may be why its not working.
 
You should enclose the text in
Code:
<p></p>
tags and apply the css class to the those tags.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top