What is CSS2 and the differences between CSS and CSS2?

Discussion in 'CSS' started by veolive, Apr 3, 2008.

  1. #1
    - What is CSS2 and the differences between CSS and CSS2?

    - How it is useful for Web Designers / Developers?
     
    veolive, Apr 3, 2008 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    CSS1 was adopted in 1996 and covered the basic selectors and cascade rules plus the 'crayola' properties; font properties, colors and backgrounds, the box properties, text properties, &c..

    CSS2 was adopted in 1998. Since it added a lot of positioning stuff, it became known as css-p. It is not a separate thing, but an extension. The current candidate release (effectively the current recommendation) is css2.1 which further extends the standard and actually removes a few things that have not been implemented.

    It is helpful because it allows developers to create maintainable pages that sanely separate the structure and semantics of html from the presentation layer. For example, we can simply mark up a menu as a list without worrying about how it should be rendered—leaving that to the css.

    cheers,

    gary
     
    kk5st, Apr 3, 2008 IP
  3. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #3
    I'd not use the term 'adopted' there - ratified would be more accurate.

    Let's face it, so far as 'adoption' goes 90% of CSS2 wasn't even deployable 'in the wild' until three years ago... and even Gecko hasn't fully finished off CSS2 support (despite wild claims to the contrary)
     
    deathshadow, Apr 4, 2008 IP