473,396 Members | 1,789 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,396 software developers and data experts.

CSS1 vs. CSS2


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 support CSS1 nowadays? What about
CSS2? I like the idea of CSS, and prefer XHTML syntax to HTML 4.01
because I can use the class attribute to define style, instead
of having a bunch of markup junk everywhere. Now I want to
get the most of out of available style.

Bye,

Neil

Jul 20 '05 #1
4 9525
Neil Zanella:
I like the idea of CSS, and prefer XHTML syntax to HTML 4.01
because I can use the class attribute to define style, instead
of having a bunch of markup junk everywhere.


You can use the class attribute to define style in HTML 4.01 as well. And
you can use markup junk to do it in XHTML too. These things actually work
exactly the same in HTML 4 and XHTML 1.0.

--
Bertil Wennergren <be******@gmx.net> <http://www.bertilow.com>
Jul 20 '05 #2
Neil Zanella <nz******@cs.mun.ca> wrote:
I would like to know what the major enhancements of CSS2 over CSS1 are
http://www.w3.org/TR/CSS2/changes.html
In particular, do most browsers fully support CSS1 nowadays?
Define most browsers....

IE5.5 (and IE6 if your doctype puts it into quirks mode) still gets
major parts of CSS1 wrong. And let's not even mention Netscape 4.
What about CSS2?
Ditto. Only more so.

No browser _fully_ supports CSS2 - a browser that fully supported all
the visual styles and all the aural styles would be truly amazing
compared with today's browsers.
I like the idea of CSS, and prefer XHTML syntax to HTML 4.01
because I can use the class attribute to define style, instead
of having a bunch of markup junk everywhere.


Sorry, I don't understand your point.
You can use the class attribute with HTML 4.01. In practical terms
there is nothing that XHTML 1.0 offers that HTML 4.01 does not. It's
quite possible to write HTML 4, or even HTML 3.2 that uses no 'markup
junk' but which uses just CSS.

Indeed, many people see class selectors as hack to deal with browsers
(like IE) that don't support the more powerful contextual selectors.

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 #3
Neil Zanella wrote:
I would like to know what the major enhancements of CSS2 over CSS1 are
TFM includes an appendix on this:

<URL:http://www.w3.org/TR/REC-CSS2/changes.html>

and whether CSS2 support is any better these days than it was a few years
ago.
Yes, quite a lot better, since most people have written off Netscape 4.x
now.

In particular, do most browsers fully support CSS1 nowadays?
You aren't likely to run into many problems with CSS 1 today, but this is
different to "most browsers fully supporting CSS 1" - I believe Internet
Explorer still gets a few things wrong, but the features are implemented,
it's mostly just corner-case stuff.

What about CSS2?
There are still widespread problems, with large sections of the
specification not being implemented by many people (and thus taken out of
CSS 2.1). Internet Explorer is the runt of the litter, falling down all
over the place.

CSS 2 is still useful, just make sure you test in Internet Explorer if you
care about that browser at all, and make sure you are aware of its various
shortcomings before writing a lot of code.

I like the idea of CSS, and prefer XHTML syntax to HTML 4.01
because I can use the class attribute to define style, instead
of having a bunch of markup junk everywhere.


XHTML 1.0 is equivelant to HTML 4.01 in this regard.
--
Jim Dabell

Jul 20 '05 #4
Neil Zanella wrote:
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 support CSS1 nowadays? What about
CSS2?

<snip>

The RichInStyle site (http://www.richinstyle.com/bugs/) gives you an
idea of just how many inconsistencies there are between the various
browsers, although the table is now quite out of date.

The site also promises a dynamically-generated test suite
(http://www.richinstyle.com/test/) but this is currently completely
buggy, and I don't know if the site is currently being maintained or not.

An alternative resource you might find useful is at the excellent
Blooberry Index DOT CSS site:

http://www.blooberry.com/indexdot/cs...key/syntax.htm

-- GuruJ.

Jul 20 '05 #5

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

Similar topics

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. ...
14
by: Michael Bulatovich | last post by:
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...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...

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.