background preloader

CSS

Facebook Twitter

30+ Tips, Tools and Resources for Taking the Pain out of Cross-B. We’re all familiar with the often long, headache-inducing process of testing and correcting our code to get it working cross-browser. Wouldn’t it be nice if we didn’t have to go through so much pain to achieve a good-looking result? Actually, you don’t! With the right knowledge, tools, and smarts, you can tackle a CSS design and get it working quickly and painlessly. With this in mind, we’re going to look at some of the excellent tools, articles and resources that will help you work smarter and cut the pain out of writing cross-browser CSS. Part 1 – Figuring out What’s Wrong I’m going to start by covering some of the great testing tools out there, because I believe the testing & diagnosis phase is your biggest and best opportunity for saving time.

You can slash hours off your development time by being able to quickly and efficiently view your design in multiple browsers, and then knowing how to rapidly diagnose any problems. Spoon Browser Sandbox Adobe Browser Labs Browsershots.org IE Tab. 10 Best @font-face Fonts. As soon as I learned about the @font-face CSS declaration, my life as a designer changed permanently. A whole world of possibilities are opened up by this feature – no more relying on Arial, Verdana, Georgia and all the other “web safe” fonts. Not that there is anything inherently wrong with those fonts, but after seeing them day after day on the web, I know I long for a bit of variety. However, just because a font is @font-face compatible doesn’t mean it’s necessarily good for the purpose you want to use it. The obvious examples are there – don’t use display fonts as your body text, for example – but some fonts just aren’t great for the web (or great at all… or good… or passable). So I’ve come to save the day with my opinions.

Here’s the 10 Best @font-face Fonts, broken into Display (aka Heading 1, Heading 2 etc) and Body listings. Use these guys for your H1, H2 etc tags – but if you set your body text in them, I’ll come right through the internet and beat you up. Museo & Museo Slab Chunk. Clean CSS - A Resource for Web Designers - Optmize and Format yo. 70 Expert Ideas For Better CSS Coding - Smashing Magazine.

Advertisement CSS isn’t always easy to deal with. Depending on your skills and your experience, CSS coding can sometimes become a nightmare, particularly if you aren’t sure which selectors are actually being applied to document elements. An easy way to minimize the complexity of the code is as useful as not-so-well-known CSS attributes and properties you can use to create a semantically correct markup. We’ve taken a close look at some of the most useful CSS tricks, tips, ideas, methods, techniques and coding solutions and listed them below.

We also included some basic techniques you can probably use in every project you are developing, but which are hard to find once you need them. And what has come out of it is an overview of over 70 expert CSS ideas which can improve your efficiency of CSS coding. You might be willing to check out the list of references and related articles in the end of this post. Update (29/05/2007): Brazilian-Portuguese translation of the article2 is also available. Web Designers' Browser Support Checklist, Web Designers' Browser. Speed Up with CSS3 Gradients. This article was originally published on March 2, 2010. It was updated April 1, 2011, July 20, 2011, and again March 3, 2014, each time to clarify and correct browser prefixes and best practices. Just as you can declare the background of an element to be a solid color in CSS, you can also declare that background to be a gradient.

Using gradients declared in CSS, rather using an actual image file, is better for control and performance. Gradients are typically one color that fades into another, but in CSS you can control every aspect of how that happens, from the direction to the colors (as many as you want) to where those color changes happen. Let's go through it all. Gradients are background-image While declaring the a solid color uses background-color property in CSS, gradients use background-image. Linear Gradient Perhaps the most common and useful type of gradient is the linear-gradient().

Not declaring an angle will assume top-to-bottom: This "to" syntax works for corners as well. Like: