Steven Hammons
Steven Hammons

Reputation: 1810

Is there a way to make sure your CSS is cross-browser capable?

Is there a way to make sure your CSS is cross-browser capable?

Upvotes: 1

Views: 1787

Answers (6)

Hristo
Hristo

Reputation: 46477

Did you mean "capable" or "compatible"?

Anyway, I always use the W3C CSS Validation Service. It checks your CSS to make sure it is valid. After passing this validator, chances are your CSS is cross-browser compatible. But I would recommend also manually inspecting your CSS in different browsers. Do check out http://www.css3.info/ for details on how different browsers implement different features of CSS 3.

I would also recommend you install the Web Developer Toolbar if you're planning on doing heavy web development. Great tool for Firefox and Chrome.

Upvotes: 1

Adam Ayres
Adam Ayres

Reputation: 8910

Your best option is to test in each of the browsers you want to support. If you don't have access to all the browsers there are for-pay web sites that will take screen shots of your site using different browsers:

http://browsershots.org/

Upvotes: 1

Marc Audet
Marc Audet

Reputation: 46785

I tend to work with strict doctypes, which solves a lot of problems.

Study http://www.quirksmode.org/ by Peter-Paul Koch

I refer to this site all the time.

However, as Ernest Friedman-Hill wisely pointed out, testing...

Upvotes: 2

agrublev
agrublev

Reputation: 768

There are a few ways to do that.

First you will want to check on a few browsers when you are done with your website. Some good options to do that is Adobe Browser application, another is browsershots.com and you can find others.

Another great rule of thumb is to use an established framework that is already cross-browser (my favorite being 52framework at http://52framework.com ).

And honestly after years of writing CSS it seems that you will just get use to writing the best possible CSS and you will have cross-browser code of the get go.

There really is no sure way to write perfect CSS first time around (there are validators out there that can help a little, Dreamweaver has a specific tool that will validate code and CSS and let you know if its capable or not.

Good luck!

Upvotes: 2

user499054
user499054

Reputation:

Here are a few tips:

Upvotes: 2

Ernest Friedman-Hill
Ernest Friedman-Hill

Reputation: 81684

No, not absolutely sure, unfortunately. Testing, testing, and more testing is the only solution.

Upvotes: 2

Related Questions