Of CSS and XHTML

Cory 'G' Watson gphat at loggerithim.org
Thu Dec 4 21:36:00 UTC 2003


On Dec 4, 2003, at 3:28 PM, Mike Morgan wrote:

> I agree with Cory's philosophies and Cristopher's statement.

<snip>

> A good example of this is what happens to a page in Netscape 4.x when 
> CSS styles are applied to properly modularized blocks of HTML.  Cory's 
> approach is correct in that he is using div's to section out major 
> blocks, and then using CSS to apply styles to the elements specific to 
> each div.

<snip>
>
> Cory, do you plan at some point to tackle the removal of tables where 
> they are not necessary?  :O

Absolutely.

I've submitted a patch against bug 69654 that does the following:

- Modifies header.html.tmpl to include two stylesheets (css/layout.css 
and css/content.css).  It does this _before_ user-specified styles so 
they can override our defaults.
- Adds the aforementioned stylesheets to css/
- Modifies banner.html.tmpl to use a div for the banner, and a div for 
the version info, rather than two useless tables.

(Thanks to Dave Lawrence from RedHat who sent me a link to their code 
off list. This code gave me the two stylesheet import and is very 
similar to what I was going to change in the header.)

This tiny patch lays the groundwork to break up all the other pages, 
one at a time.  Again, I want to submit small, simple patches to slowly 
bring the templates up to snuff.

Is this approach satisfactory?

Cory 'G' Watson

"The universal aptitude for ineptitude makes any human accomplishment 
an incredible miracle." - Dr. John Paul Stapp




More information about the developers mailing list