What version of CSS should I be targeting?

Posted on 2011-10-19
Medium Priority
Last Modified: 2012-05-12
I have coded on MVC1, MVC2 and not MVC3 projects. But I have not done that much with CSS as I have not created that many Razor files from scratch.

My question is what version shouild I be trying to learn? Is seems CSS3. But what problems might come from me doing that?

Question by:newbieweb
LVL 33

Assisted Solution

jppinto earned 400 total points
ID: 36994935
CSS3 is not totally release:


but for sure is the future!
LVL 18

Assisted Solution

nap0leon earned 400 total points
ID: 36994965
If you target CSS3 you will be using "stuff" that is not supported by many of your users.
If you are just now learning it and are practicing for your own use, or know that your users will be using the latest web browsers, then go for it.

If you are unsure which browsers your users will be using, then you should code to CSS2 and HTML4.  You can, of course, code for CSS3 and HTML5, but you will want to verify cross-browser compatibility.
LVL 84

Accepted Solution

Dave Baldwin earned 400 total points
ID: 36994982
CSS3 builds on CSS2 which added to CSS1.  This page http://www.w3schools.com/cssref/default.asp shows which versions support which features.  To use CSS3 features you still need to know the other CSS features that came before.
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 30

Assisted Solution

LZ1 earned 800 total points
ID: 36994986
You really have to think about what browsers your clients will be using. A lot of people are going the CSS 3 way for certain sites. However, the majority of people are starting to use a hybrid of CSS 2.1 and CSS 3. It really is up to the demographic your site is going to be targeting. If they are younger or pretty web savvy then you could shoot for CSS3.

If they are older or it's aimed at a more professional/corporate environment, then I would go with CSS 2.1/3 hybrid.

Author Comment

ID: 36995320
I don't want to be the first. So CSS3 is not for me. I want to be maximally compliant with today's browsers.

What version should I be using?
LVL 30

Assisted Solution

LZ1 earned 800 total points
ID: 36995338
CSS 2.1. Then you can validate it here:

Author Closing Comment

ID: 36995754

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this Micro Tutorial users will learn how to embed custom fonts into websites using @font-face in CSS Select a font: Ensure the EULA allows you to use @font-face: Download the font: Get the browser-compatible files you need: Edit your CSS       - Name …
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Suggested Courses
Course of the Month9 days, 16 hours left to enroll

569 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question