|
Argh. Can someone help me understand some weird Internet Explorer behavior
with cascading style sheets? Check out
<http://jadzia.bu.edu/~mattdm/csstest/test.html>. The text there should
appear approximately like this:
Lorum ipsum dolor sit ament, con; venami quis nostrud laboris nisi ut
nostrdt ut aliquip exd srtd ae dertsd. In redrids ftrh de venami sil de thws
sdes fedq diy amin.
Lorum ipsum dolor sit ament, con; venami quis nostrud laboris nisi ut
nostrdt ut aliquip exd srtd ae dertsd. In redrids ftrh de venami sil de thws
sdes fedq diy amin.
Lorum ipsum dolor sit ament, con; venami
quis nostrud laboris nisi ut nostrdt ut
aliquip exd srtd ae dertsd. In redrids ftrh
de venami sil de thws sdes fedq diy amin.
Lorum ipsum dolor sit ament, con;
venami quis nostrud laboris nisi ut nostrdt
ut aliquip exd srtd ae dertsd. In redrids
ftrh de venami sil de thws sdes fedq diy
amin.
However, for no apparent reason, IE 5.0 decides to indent not just the first
line of the last paragraph, but the whole thing. The bizarre thing is that
it then *does* indent the first line additionally, like this:
Lorum ipsum dolor sit ament, con;
venami quis nostrud laboris nisi ut nostrdt
ut aliquip exd srtd ae dertsd. In redrids
ftrh de venami sil de thws sdes fedq diy
amin.
Why is it doing this to me? It works fine with Mozilla or Netscape. Here is
the style sheet:
P.a { }
P.b { text-indent:2em; }
P.c { width: 25pc; }
P.d { width: 25pc; text-indent:2em; }
The sample page with a border around the paragraph blocks can be found at
<http://jadzia.bu.edu/~mattdm/csstest/test2.html>. Why does text-indent
(which by the spec should only affect the first line) cause the whole block
to be shifted?
--
Matthew Miller ---> mattdm@mattdm.org
Quotes 'R' Us ---> http://quotes-r-us.org/
Boston University Linux ---> http://linux.bu.edu/
|
|
Message has 1 Reply:
2 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|