Forum Moderators: not2easy

Message Too Old, No Replies

IE 5.5/6 bug for "text-align: justify;" in the first line of text

IE 5.5/6 bug for "text-align: justify;" in the first line of text

         

Tobasco

1:03 am on Jun 22, 2005 (gmt 0)

10+ Year Member



Hey all,
I've found, what I believe to be, a perculiar bug.
Using the following tag:

p{
line-height: 140%;
text-align: justify;
}

I've found that in the first line of text in IE5.5/6 it doesn't justify, but for all the other lines, in that tag, and further <p></p> tags there is no problem?

Anyone aware of this and/or know a hack around it?

Cheers - Jack

Setek

4:35 am on Jun 22, 2005 (gmt 0)

10+ Year Member



I tested that css on IE6 and it worked fine... I wouldn't know about 5.5 though.

Sorry I can't be of more help :)

tedster

7:05 am on Jun 22, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello Tobasco, and welcome to the forums.

Tested on IE 4.0, 5.0. 5.5. 6.0 -- and no problem, at least on Windows XP. What's your operating system? In some rare cases that can make a difference.

Moby_Dim

7:22 am on Jun 22, 2005 (gmt 0)

10+ Year Member



Be sure your code is valid. Such things could be the result of non-valid code imho.

SuzyUK

10:07 am on Jun 22, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Tabasco and Welcome!

Is that particular line following a floated element by any chance? Just a thought as sometimes IE does peculiar things when clearance is involved.

Suzy

lmfe

6:44 pm on Jul 14, 2005 (gmt 0)



I was having this problem, too.

The problem was somewhat related to having a DIV block nested within an A element. When the DIV got the text-align:justify, the first line didn't got justified.
The most strange part is that I have the same nesting somewhere else, which shows no problem with justification, so I guess thats not easily reproducible.

Inverting the nested elements (<div><a>...</a></div>) worked fine.

createErrorMsg

9:31 pm on Jul 14, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome, Tabasco!

IE also has known issues with text-align:justify when there are italics involved. Any <em> elements in that line?

Stooshie

3:33 pm on Jul 15, 2005 (gmt 0)

10+ Year Member



If I remember correctly IE5.5 was a particularly buggy version of that browser for all sorts of functionality, not just css.