W3C home > Mailing lists > Public > www-style@w3.org > April 1997

Re: colours for bullets - this one is simple, works, & addresses

From: Ian Young <imy@wcl-rs.bham.ac.uk>
Date: Wed, 16 Apr 1997 15:24:44 +0100
Message-Id: <9704161424.AA18664@wcl-rs.bham.ac.uk>
To: www-style@w3.org
David Perrell <davidp@earthlink.net> wrote:
> I don't know what the intentions are, but MSIE's behavior indicates
> the table can be a sibling of the paragraph. Declare the style

>   P { color: blue }

> then follow a paragraph with a table. If there is a </P> before
> <TABLE>, the content of the table is black. If there is no </P>, the
> content of the table is blue.

This is true for MSIE 3, but not 4, where paragraphs on both sides
are blue, but the text in the table is black regardless of whether
</p> occurs or not. However, MSIE 4 does seem to allow <table> in <p>.
In the following MSIE 4 renders the first table's text in fucshia and
the second in red (and the vertical space before the second table is
larger):

<html>
<head>
<style>
  body { color: green }
  p { color: blue }
  table { color: red }
  p table { color: fucshia }
</style>
<body>
this text not in any para, so green
<p>para the first: in blue
<table border=1><tr><td>one<td>two<td>three: in fucshia</table>
continuation of 1st para, so also blue.

<p>para the second: in blue</p>
<table border=1><tr><td>one<td>two<td>three: in red</table>
this text not in any para, so green
</html>

Netscape 4 pr 3 gets it totally wrong and renders the text immediately
_after_ the table fucshia and red respectively.

I.
Received on Wednesday, 16 April 1997 10:21:25 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:53:49 GMT