473,406 Members | 2,371 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

CSS2 vs CSS1

Has anyone got a good link to a concise discussion of where things now stand
regarding these two?

e.g.

What browsers are compliant with one or the other?

What the adoption rate is of these browsers?

How are site developers dealing with what appears to me to be the
incompatibilities
of the two standards?

Jul 20 '05 #1
14 2569
"Michael Bulatovich" <Pl****@dont.try> wrote:
Has anyone got a good link to a concise discussion of where things now stand
regarding these two?
Sorry, no.
e.g.

What browsers are compliant with one or the other?
IE supports some of CSS1 and a little bit of CSS2.
Other modern graphical browsers support (almost?) all of CSS1 and most
of the visual parts of CSS2.
What the adoption rate is of these browsers?
IE's progress is frozen for the time being.
Other browsers are moving towards supporting CSS2.1 and some parts of
CSS3. Those parts of CSS2 that are not being carried forward to 2.1
and 3 will probably never be supported if they aren't already.
How are site developers dealing with what appears to me to be the
incompatibilities of the two standards?


In most cases CSS2 (or CSS2.1) will be supported over CSS1. Did you
have some particular issues in mind?

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #2
Thanks for the reply, Steve.
I'm just trying decide how to best use the limited time I have here on
earth.
I set up a site for my practice (CSS1) a few years ago now, and wondered
if I should put reworking it to CSS2 on my to do list because of newer
browser releases.

"Steve Pugh" <st***@pugh.net> wrote in message
news:41********************************@4ax.com...
In most cases CSS2 (or CSS2.1) will be supported over CSS1. Did you
have some particular issues in mind?


Jul 20 '05 #3
"Steve Pugh" <st***@pugh.net> wrote in
comp.infosystems.www.authoring.stylesheets:
IE supports some of CSS1 and a little bit of CSS2.
Other modern graphical browsers


s/Other modern/Modern/

IE6 is how many years old now? More than a generation, in computer
terms?

I think we should stop according it the style of a "modern" browser.
I guess it's modern compared it to Netscape 4. :-)

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #4
Michael Bulatovich wrote:
I set up a site for my practice (CSS1) a few years ago now, and wondered
if I should put reworking it to CSS2 on my to do list because of newer
browser releases.


Go with CSS 2.1. It is (counter-intuitively) better supported than 2.0.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Now Playing ~ ./catatonia/international_velvet/11_strange_glue.ogg

Jul 20 '05 #5
I'm not looking for work, Toby. ; )

I'm wondering if it's yet a problem to have CSS1 sheets on the site...

"Toby Inkster" <us**********@tobyinkster.co.uk> wrote in message
news:pa****************************@tobyinkster.co .uk...
Michael Bulatovich wrote:
I set up a site for my practice (CSS1) a few years ago now, and wondered
if I should put reworking it to CSS2 on my to do list because of newer
browser releases.


Go with CSS 2.1. It is (counter-intuitively) better supported than 2.0.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Now Playing ~ ./catatonia/international_velvet/11_strange_glue.ogg


Jul 20 '05 #6
On Mon, 6 Sep 2004, Michael Bulatovich blurts out atop a quote:
I'm not looking for work, Toby. ; )

I'm wondering if it's yet a problem to have CSS1 sheets on the site...


Eh? CSS1 works great with HTML/2.0 already[1], and causes no harm at
all to client agents which don't implement it.

So what's your real question?

cheers

[1] If there's any pedants left, they'll point out the one detail
which theoretically causes a problem for this. But in practice it
works - I tested it years ago.
Jul 20 '05 #7
"Michael Bulatovich" <Pl****@dont.try> wrote in message
news:b4*******************@news20.bellglobal.com.. .
I'm not looking for work, Toby. ; )

I'm wondering if it's yet a problem to have CSS1 sheets on the site...


There is no way to tell the browser that you want CSS implemented per CSS1.
But, if you use a DOCTYPE that triggers standards mode, modern browsers will
try to honour CSS2 better than older browsers. Indeed, Toby's advice was
good: go with 2.1, since it is closest to how real-world browsers now
implement CSS.
Jul 20 '05 #8
"C A Upsdell" <cupsdell0311XXX@-@-@XXXrogers.com> wrote:
Indeed, Toby's advice was
good: go with 2.1, since it is closest to how real-world browsers now
implement CSS.


As informal advice to fellow authors, yes. However, in details (where the
&Evil; lives), CSS 2.1 contains quite a lot of stuff that isn't actually
supported by browsers. It was not _consistently_ designed to be "CSS as
currently implemented". It even contains some additions to CSS 2,
including things with virtually no support.

But I was recently faced with the question what should be written as a
description of required skills in authoring. When you write down such
things, e.g. when setting up requirements for hiring, or for students to
learn, there's a problem. CSS 2.1, the draft (now with status "Candidate
Recommendation"), itself says:
"It is inappropriate to cite this document as other than work in
progress."

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Jul 20 '05 #9
Alan J. Flavell wrote:
On Mon, 6 Sep 2004, Michael Bulatovich blurts out atop a quote:
I'm not looking for work, Toby. ; )

I'm wondering if it's yet a problem to have CSS1 sheets on the site...


Eh? CSS1 works great with HTML/2.0 already[1], and causes no harm at all
to client agents which don't implement it.

[1] If there's any pedants left, they'll point out the one detail which
theoretically causes a problem for this. But in practice it works - I
tested it years ago.


Do you mean the lack of <STYLE>? Because you can still use <LINK>.

Or maybe I'm not being pedantic enough today.

--
Matt
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Jul 20 '05 #10
Matt <no******@spam.matt.blissett.me.uk> wrote:
Alan J. Flavell wrote:

Eh? CSS1 works great with HTML/2.0 already[1], and causes no harm at all
to client agents which don't implement it.

[1] If there's any pedants left, they'll point out the one detail which
theoretically causes a problem for this. But in practice it works - I
tested it years ago.
Do you mean the lack of <STYLE>? Because you can still use <LINK>.


<style> is yucky. Even in versions of HTML that include it <link> is
usually preferable.
Or maybe I'm not being pedantic enough today.


Think about <link> and think about its attributes...

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #11
Alan J. Flavell wrote:
If there's any pedants left, they'll point out the one detail which
theoretically causes a problem for [using CSS with HTML 2.0]. But in
practice it works - I tested it years ago.


Do you mean the lack of a style attribute and <style> element? Shouldn't
be a problem as HTML 2.0 has <link>.

The rel attribute is tricky -- HTML 2.0 defers specifying the allowed
values for it to a mythical "HTML Registration Authority". AFAIK this was
never set up, so perhaps this means that any value is illegal? OTOH,
perhaps the W3C is the authority, and we may use any values defined in
later standards (including "stylesheet").

In lieu of "rel=stylesheet", the Link header could be used, either in
conjunction with <meta http-equiv="..." content="..."> or as a real HTTP
header. AFAIK this is only supported by Gecko though.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

Jul 20 '05 #12
On Tue, 7 Sep 2004, Toby Inkster wrote:
Alan J. Flavell wrote:
If there's any pedants left, they'll point out the one detail which
theoretically causes a problem for [using CSS with HTML 2.0]. But in
practice it works - I tested it years ago.
Do you mean the lack of a style attribute and <style> element?


No, I don't mean that. It's true that you have to work without use
of style element (which some would argue is no bad thing anyway), and
without use of the class attribute (which rather cramps what one can
do)...
Shouldn't
be a problem as HTML 2.0 has <link>.

The rel attribute is tricky -- HTML 2.0 defers specifying the allowed
values for it to a mythical "HTML Registration Authority". AFAIK this was
never set up, so perhaps this means that any value is illegal?


I hadn't thought of it that way ;-)

But as far as the 2.0 DTD is concerned, any syntactically appropriate
value is acceptable, including "stylesheet".

No, I was referring to the lack of a type= attribute for the link
element in 2.0, and thus the inability to code type="text/css". But
that didn't seem to cause a problem in practice, I found (back when I
tried it).

Jul 20 '05 #13
"Jukka K. Korpela" <jk******@cs.tut.fi> wrote in message
news:Xn*****************************@193.229.0.31. ..
"C A Upsdell" <cupsdell0311XXX@-@-@XXXrogers.com> wrote:
Indeed, Toby's advice was
good: go with 2.1, since it is closest to how real-world browsers now
implement CSS.
As informal advice to fellow authors, yes. However, in details (where the
&Evil; lives), CSS 2.1 contains quite a lot of stuff that isn't actually
supported by browsers. It was not _consistently_ designed to be "CSS as
currently implemented". It even contains some additions to CSS 2,
including things with virtually no support.


Agreed. I was giving practical advice. I would hope that all designers are
aware that no browser completely and correctly implements any standard, and
that, even if all did, there would still be differences in rendering because
some aspects of the standard are explicitly up to the user agent.
But I was recently faced with the question what should be written as a
description of required skills in authoring. When you write down such
things, e.g. when setting up requirements for hiring, or for students to
learn, there's a problem. CSS 2.1, the draft (now with status "Candidate
Recommendation"), itself says:
"It is inappropriate to cite this document as other than work in
progress."


Yes. But. IMO 2.1 is the best target to aim for at THIS point in time.

Jul 20 '05 #14
Steve Pugh wrote:
Matt <no******@spam.matt.blissett.me.uk> wrote:
Alan J. Flavell wrote:

Eh? CSS1 works great with HTML/2.0 already[1], and causes no harm at
all to client agents which don't implement it.

[1] If there's any pedants left, they'll point out the one detail which
theoretically causes a problem for this. But in practice it works - I
tested it years ago.


Do you mean the lack of <STYLE>? Because you can still use <LINK>.


<style> is yucky. Even in versions of HTML that include it <link> is
usually preferable.
Or maybe I'm not being pedantic enough today.


Think about <link> and think about its attributes...


<http://www.w3.org/MarkUp/html-spec/html-spec_5.html#SEC5.2.4>

| The LINK element [...] has the same attributes as the A element (see
| section Anchor: A).

<http://www.w3.org/MarkUp/html-spec/html-spec_5.html#SEC5.7.3>

| The A element [...] HREF [...] NAME [...] TITLE [...] REL [...] REV
| [...] URN [...] METHODS

MEDIA is optional, so we're ok. We don't have TYPE, but is that actually
required?

<http://www.w3.org/TR/REC-html40/present/styles.html#h-14.3.2>

| Authors specify external style sheets with the following attributes of
| the LINK element: [...] Set the value of the type attribute to indicate
| the language of the linked (style sheet) resource. This allows the user
| agent to avoid downloading a style sheet for an unsupported style sheet
| language.

Um... yes, it is. Seems I misread this the first time ;)

Consider me out-pedanted.

--
Matt
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Jul 20 '05 #15

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Neil Zanella | last post by:
Hello, I would like to know what the major enhancements of CSS2 over CSS1 are and whether CSS2 support is any better these days than it was a few years ago. In particular, do most browsers fully...
12
by: Michael Winter | last post by:
Is it possible to test for CSS level 2 support, preferably using just CSS2? For example, the following could alert the user that their browser doesn't support CSS1 or 2. Is there an equivalent for...
6
by: Patrick | last post by:
Hi I am a newbie struggling a little with css.It is hard to get it right in all browsers, so i decided to read the CSS2 specification on the w3 site. What is the following from the CSS2...
20
by: Karl Smith | last post by:
I heard a rumour that Opera succeeded where none have before, and implemented the tables described in HTML4 and CSS2. So I thought I'd try it out with the well known Periodic Table. ...
2
by: Jan Roland Eriksson | last post by:
The following URL... <http://www.w3.org/TR/CSS21/> ....has had the following text in it for a considerable time now. "This is a W3C Candidate Recommendation, which means the specification...
2
by: Xah Lee | last post by:
what's new in CSS2? http://xahlee.org/js/css2.html Xah xah@xahlee.org ∑ http://xahlee.org/
2
by: David E. Ross | last post by:
A new working draft of the CSS2.1 specification was published on-line on 11 April. Does anyone know what changed since the previous (13 June 2005) working draft? -- David E. Ross...
4
by: maya | last post by:
I'm trying to learn CSS2, find some aspects of it quite confusing.. here, http://www.w3.org/TR/REC-CSS2/selector.html#q1 I see this: E F : Matches any F element that is a descendant of an E...
1
by: Jean Pierre Daviau | last post by:
Hi, I am looking for a pdf version of CSS2.1 Specification Thanks -- Jean Pierre Daviau
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.