To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.publishOpen lugnet.publish in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Publishing / 2259
2258  |  2260
Subject: 
IE css help
Newsgroups: 
lugnet.publish, lugnet.off-topic.geek
Date: 
Tue, 8 Aug 2000 03:05:13 GMT
Reply-To: 
mattdm@mattdm.org*AvoidSpam*
Viewed: 
809 times
  
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:
  Re: IE css help
 
(...) Turns out the answer is: it's a bug in IE 5.0. Seems to be fixed in 5.5. (24 years ago, 9-Aug-00, to lugnet.publish, lugnet.off-topic.geek)

2 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR