Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
What is the difference of CSS2 to CSS3?
Old 05-26-2011, 04:40 AM What is the difference of CSS2 to CSS3?
Junior Talker

Posts: 4
Trades: 0
I wonder how they differ,what changes have made and advantage and disadvantage of using css3
georga is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-26-2011, 04:39 PM Re: What is the difference of CSS2 to CSS3?
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
css3 = css2 + css1

css3 builds on top of css2 and adds lots of things to it. Impossible to tell you all of them in a forum thread. It's not that hard to find the changes with a little searching though.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 05-31-2011, 07:31 AM Re: What is the difference of CSS2 to CSS3?
c69
c69's Avatar
Experienced Talker

Posts: 40
Name: Constantine
Trades: 0
CSS2.1 is stable, old, compatible (IE8+).
CSS3 is new, cool, sometimes buggy, vendor-prefixed, and not cross-browser [yet].

But to be more specific, CSS 3 is not a monolith spec anymore. It consists of modules which have different writing and adoption speeds. Some of them are everywhere now, some are far from it. Look at W3C site for specific modules, and at vendor sites for what parts of CSS3 they currently support.
c69 is offline
Reply With Quote
View Public Profile Visit c69's homepage!
 
Old 07-08-2011, 09:53 AM Re: What is the difference of CSS2 to CSS3?
Skilled Talker

Posts: 83
Trades: 0
below text is copied from about.com

Quote:
SS3 offers a bunch of new ways you can write CSS rules with new CSS selectors, as well as a new combinator, and some new pseudo-elements. Three new attribute selectors:
  • attribute beginning matches exactly
    element[foo^="bar"]
    The element has an attribute called foo that begins with "bar" e.g. <element foo="barn">
  • attribute ending matches exactly
    element[foo$="bar"]
    The element has an attribute called foo that ends with "bar" e.g. <element foo="rebar">
  • attribute contains the match
    element[foo*="bar"]
    The element has an attribute called foo that contains the string "bar" e.g. <element foo="rebaring">
16 new pseudo-classes:
  • :root
    The root element of the document. In HTML this is always <html>
  • :nth-child(n)
    use this to match exact child elements or use variables to get alternating matches
  • :nth-last-child(n)
    match exact child elements counting up from the last one
  • :nth-of-type(n)
    match sibling elements with the same name before it in the document tree
  • :nth-last-of-type(n)
    match sibling elements with the same name counting up from the bottom
  • :last-child
    match the last child element of the parent
  • :first-of-type
    match the first sibling element of that type
  • :last-of-type
    match the last sibling element of that type
  • nly-child
    match the element that is the only child of its parent
  • nly-of-type
    match the element that is the only one of its type
  • :empty
    match the element that has no children (including text nodes)
  • :target
    match an element that is the target of the referring URI
  • :enabled
    match the element when it's enabled
  • :disabled
    match the element when it's disabled
  • :checked
    match the element when it's checked (radio button or checkbox)
  • :not(s)
    match when the element does not match the simple selector s
One new combinator:
  • elementA ~ elementB
    match when elementB follows somewhere after elementA, not necessarily immediately
__________________
»
Please login or register to view this content. Registration is FREE
- Interactive maps for websites
»
Please login or register to view this content. Registration is FREE
for web developers
DmitryS is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to What is the difference of CSS2 to CSS3?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.70066 seconds with 12 queries