background preloader


Facebook Twitter

Vertical centering with Flexbox + margin fallback. Efficiently Rendering CSS. I admittedly don't think about this idea very often... how efficient is the CSS that we write, in terms of how quickly the browser can render it?

Efficiently Rendering CSS

This is definitely something that browser vendors care about (the faster pages load the happier people are using their products). Mozilla has an article about best practices. Google is also always on a crusade to make the web faster. They also have an article about it. Let's cover some of the big ideas they present, and then discuss the practicalities of it all. Right to Left One of the important things to understand about how browsers read your CSS selectors, is that they read them from right to left. ID's are the most efficient, Universal are the least There are four kinds of key selectors: ID, class, tag, and universal. #main-navigation { } body.home #page-wrap { } .main-navigation { } ul li a.current { } ul li a { } * { } #content [title='home'] #main-nav > li { }

CSS Layout - 100% height. Min-height The #container element of this page has a min-height of 100%.

CSS Layout - 100% height

That way, if the content requires more height than the viewport provides, the height of #content forces #container to become longer as well. Possible columns in #content can then be visualised with a background image on #container; divs are not table cells, and you don't need (or want) the fysical elements to create such a visual effect. If you're not yet convinced; think wobbly lines and gradients instead of straight lines and simple color schemes. Relative positioning Because #container has a relative position, #footer will always remain at its bottom; since the min-height mentioned above does not prevent #container from scaling, this will work even if (or rather especially when) #content forces #container to become longer. Start Using CSS3 Today: Techniques and Tutorials - Smashing Coding.

Advertisement We have been publishing articles about CSS3 for a while now, and we keep receiving angry e-mails from some developers who complain that it doesn’t make sense to use CSS3 today. Yes, Internet Explorer doesn’t support most CSS3 properties. 5 Cool CSS Hover Effects You Can Copy and Paste. Need a cool hover effect for something on your site?

5 Cool CSS Hover Effects You Can Copy and Paste

Look no further! We’ve created several custom examples that you can view live for inspiration. CSS3 Patterns Gallery. Amazing CSS3 techniques you should know. Color animate any shape with CSS3 and a PNG Let’s start this compilation with an interesting effect created using only CSS3: A png image with a changing background.

Amazing CSS3 techniques you should know

The background is using CSS3 transitions. Not the kind of effect you’ll put on your website, but definitely an interesting demo of what CSS3 can do.View source: CSS, Web Development, Color Tools, SEO, Usability etc. CSSMania. Getting to Work with CSS3 Power Tools. CSS3 is one of the coolest new web technologies available to web developers right now.

Getting to Work with CSS3 Power Tools

Using some of its many features, it is possible to reproduce the effects that you might have previously done in Photoshop, with CSS code that is more maintainable, faster to load, and hip with the latest trends. Read on to learn about the power tools available to you and how to combine them to produce the ultimate graphical effects. Multi-column layout. Home / CSS3 Previews / Multi-column layout W3C offers a new way to arrange text “news-paper wise”, in columns.

Multi-column layout

Farewell Floats: The Future of CSS Layout. Floats are one of the most basic tools for structuring a web page using CSS.

Farewell Floats: The Future of CSS Layout

They’re both one of the very first things that we learn about and one of the last things that we truly master. Today’s article looks at some of the reasons that floats are pretty lame and takes a look at a number of alternative layout systems, some of which are still under development but may one day represent the standard for CSS-based layout. A Tale of Tables Once upon a time, web designers used HTML tables to accomplish complex page layouts. Though it was a messy, non-semantic process, it attempted to make the best of the available technology to create better designs.

CSS3 Generator. Moving Highlight. I recently noticed a subtle and nice effect in the Google Chrome UI.

Moving Highlight

As you mouse over inactive tabs, they light up a bit, but also have a gradient highlight that follows your mouse as you move around on them. The guys from DOCTYPE told me it was their inspiration for the navigation on their website. They are doing it just like I would have, with CSS3 gradients and jQuery. So I decided to snag their code and play around with it. Radial Gradient The highlight itself will be created from a radial gradient. Webkit and Mozilla based browsers (only) can do radial gradients. 960 Grid System. 10 Challenging But Awesome CSS Techniques. Most designers and web developers only scratch the surface of the potent language that is CSS.

10 Challenging But Awesome CSS Techniques

In terms of programming languages, CSS has a fairly simple learning curve. That doesn't mean that CSS isn't a powerful language. Demo: Pure CSS folded-corner effect. The 1140px CSS Grid System/Framework · Fluid down to mobile. Styling File Inputs with CSS and the DOM. File inputs (<input type="file" />) are the bane of beautiful form design.

Styling File Inputs with CSS and the DOM

No rendering engine provides the granular control over their presentation designers desire. This simple, three-part progressive enhancement provides the markup, CSS, and JavaScript to address the long-standing irritation. Before we get down to the nitty gritty details, check out the demo or, if you’re a Mint user, check out your settings page in the Mint Account Center (requires login). The No-Pressure Introduction to CSS3. It's difficult to escape the hype surrounding CSS3 at the moment, yet it has created a divide in the community. If you read any blog post on the subject and it is flooded with comments by developers who feel they still cannot use CSS3 in their work. Rather than being encouraging the responses from the experts in our community can appear as aggressive and superior.

Although they are correct in saying CSS3 can be used now, the decision must still fall to the individual, even if their opinions are based on inaccurate assumptions. In this article I'll try to cover some of the more widely adopted CSS3 advancements, showing you not only how to use them but also the support you will likely expect from the major browsers. 50+ Awesome CSS3 Techniques for Better Designs. CSS3 is gaining momentum, despite the fact that the standard hasn’t even been finalized. There are hundreds of tutorials out there to teach designers how to use it, but unfortunately a lot of them cover the same ground. And some of the tutorials teach designers to do things that they might not think of as useful, though the techniques can usually be adapted to fit a project perfectly.

50 Useful CSS3 Tutorials / CSS / Splashnology - Web Design and Web Technology Community. InShare0 Each day CSS3 becomes more and more popular among web designers and web developers. Many exciting functions and features are being made up for CSS3 today, which provide faster completion time, more flexibility and easier maintenance of web pages. CSS Sprites generator.