On Wed, Oct 11, 2006 at 06:48:47PM +0100, Edd Barrett wrote:
> 
> On 10/10/06, Benji Fisher <[EMAIL PROTECTED]> wrote:
> >
> >     The samples look fine to me (using Mozilla 1.7.12 on Linux).  I
> >would like to see an example where the background color changes, if only
> >so that I can see some situation where
> >
> >        <span class="foo"> (text) </span>
> >
> >looks simpler (by rudimentary measures such as character count) than
> >
> >        <font color="#EEE"> (text) </font>
> 
> I'm not sure what you mean here. Please explain...

     I just mean that, looking at the above example and just thinking
about how easy it is to read the source, there does not seem to be any
advantage to using CSS.  With CSS, there will be extra material in the
header (defining the attributes for the foo class) and the markup in the
body will be about as complicated.  However, if the bar class defines
foreground and background colors, then the CSS version will still have
something like

       <span class="bar"> (text) </span>

in the body, while the non-CSS version will have something like

       <font color="#EEE" bgcolor="333"> (text) </font>

and now the CSS version is easier to read.

     If you add a syntax error to your example file, then it should show
up with Error highlighting.  With most color schemes, this will change
the background color as well as the text color.  Then we can see how
this gets translated into HTML or XHTML.

HTH                                     --Benji Fisher

Reply via email to