> I've heard talk about how much faster css is at rendering pages than
> table layouts, but I've never seen the proof (actual statistics). I
> was wondering if anyone knew of a study on this.
Not that I know of, but the main difference is that CSS layouts tend
to be a lot slicker than oldschool table layouts anyways. Speed is
only one of the benefits of a CSS layout, personally I see the easy of
redesign the best asset of a CSS layout.
Furthermore, when you have developed a CSS layout - why bother doing a
table one? Or why bother creating a CSS layout that is exactly the
same as the table one when a redesign offers so many more options to
improve the old page?
> My second questions is related to that, dose anyone know of any
> resources on writing more optimised css. For example I was just
> reading on this list in the talk comparing class to id and there was
> mention there was performance difference between
>
> element.class {}
> and
> .class {}
>
> If anyone knows where some resources on this are I'm curious.
Browser rendering speed might be a way to measure the performance of a
CSS file but there are so many more assets that make up a good CSS
file:
- human readability
- clear structure
- short selectors and no repetition
- awareness of browser issues and fixes based on progressive
enhancement rather than browser dependent hacks
- good and enough comments
- flags and tagging (=nav and alikes)
A CSS file, the same way as other source code is not only there for a
user agent to digest (and you cannot test on all User Agents and any
test results will be dependent on more factors like the computer or
the internet connection) it is also there for another human being (or
yourself) to change and maintain.
If we stop focusing on machines to develop for and move toward the
human interaction part even outside the UI web development would be so
much easier.
There is a good articles on efficient CSS on Roger's Site:
http://www.456bereastreet.com/archive/200502/efficient_css_with_shorthand_properties/
and linked from it
http://businesslogs.com/design_and_usability/lean_xhtml_and_precise_css.php
http://www.contentwithstyle.co.uk/Articles/70/playing-nice-with-the-other-css-kids/
and my own rant
http://www.wait-till-i.com/index.php?p=172
HTH
Chris
--
Chris Heilmann
Blog: http://www.wait-till-i.com
Writing: http://icant.co.uk/
Binaries: http://www.onlinetools.org/
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/