HTML5 CSS

Facebook Twitter

Inbox - jnavon - Gmail. CSS: the cascade, specificity, and inheritance. What is specificity?

CSS: the cascade, specificity, and inheritance

Specificity is a method of conflict resolution within the cascade. Specificity is calculated in a very particular way, based on the values of 4 distinct categories. For explanatory purposes, the CSS2 spec represents these categories using the letters a, b, c, and d. Each has a value of 0 by default. a is equal to 1 if the declaration comes from a style attribute in the HTML (“inline styles”) rather than a CSS rule with a selector.b is equal to the number of ID attributes in a selector.c is equal to the number of other attributes and pseudo-classes in a selector.d is equal to the number of elements and pseudo-elements in a selector.

The specificity is given by concatenating all 4 resulting numbers. For example, the selector #id .class[href] element:hover contains: HTML5 Boilerplate - A rock-solid default template for HTML5 awesome. 10 Beautiful Examples of Responsive Web Design. These days, everyone is consuming content differently.

10 Beautiful Examples of Responsive Web Design

My mom has a netbook, I have a laptop, my friend has a 27″ iMac, my girlfriend and I have smartphones and her mom has an iPad. Since your content is now being viewed on more devices and browsers than ever before, you have to design it with that in mind. Websites that adapt to things like screen sizes and operating systems are known as responsive designs, and this list of 10 sites shows off the future of the flexible Web. Bread & Pepper Bread & Pepper is a software company that creates simple interfaces with spicy code. ➤ Bread & Pepper Though most browser windows aren’t constantly dragged around, it’s nice that this site adjusts seamlessly (never jumpy). Food Sense The logo bounces from the side to the top-center on this site. ➤ Food Sense (via Splashnology) Jux ➤ Jux Endloop Mobile Endloop Mobile’s site was built off of a heavily modified responsive wordpress theme. ➤ Endloop Mobile Gravitate Gravitate looks elegant at any size.

Think Vitamin. CSS3 Browser Support and Information. Home - Scalable and Modular Architecture for CSS. Patterns For Large-Scale JavaScript Application Architecture. Today we're going to discuss an effective set of patterns for large-scale JavaScript application architecture.

Patterns For Large-Scale JavaScript Application Architecture

The material is based on my talk of the same name, last presented at LondonJS and inspired by previous work by Nicholas Zakas. Who am I and why am I writing about this topic? I'm currently a JavaScript and UI developer at AOL helping to plan and write the front-end architecture to our next generation of client-facing applications. As these applications are both complex and often require an architecture that is scalable and highly-reusable, it's one of my responsibilities to ensure the patterns used to implement such applications are as sustainable as possible.

I also consider myself something of a design pattern enthusiast (although there are far more knowledgeable experts on this topic than I). Can you summarize this article in 140 characters? In the event of you being short for time, here's the tweet-sized summary of this article: Coffescript - A Better Way to JS - Brain Spill. CodeKit — THE Mac App For Web Developers. Gear Compile Everything Less, Sass, Stylus, CoffeeScript, Typescript, Jade, Haml, Slim, Markdown & Javascript. sync.

CodeKit — THE Mac App For Web Developers

LiveReload. jQuery Air - First Flight. Web Design Tutorials. One of the posts on this website that consistently gets a significant amount of traffic (5000+ page views this month alone) is a ridiculous article I wrote that discusses how to make a child element not inherit the opacity setting of its parent.

Web Design Tutorials

As we all know, opacity property can be annoying in this area. Basically, if a parent element has an opacity value set at, say, 0.5, all of its children will inherit that opacity setting, and there’s no way to reverse that opacity on the child elements. Subway Map Visualization jQuery Plugin » TechBubble. I have always been fascinated by the visual clarity of the London Underground map.

Subway Map Visualization jQuery Plugin » TechBubble

Given the number of cities that have adopted this mapping approach for their own subway systems, clearly this is a popular opinion. At a conference some years back, I saw a poster for the Yahoo! Developer Services. They had taken the concept of a subway map and applied it to create a YDN Metro Map. Once again, I was in awe of the visual clarity of this map in helping one understand the various Yahoo! University departments, offices, student groupsGovernmentOpen Source projectsInternet startups by category More examples on this blog: Ten Examples of the Subway Map Metaphor. Fast-forward to now. With these goals in mind, I started creating my jQuery plugin. Download or get it on GitHub Step-by-Step Guide Here is a guide to using the Subway Map Visualization jQuery Plugin. Demo: Here’s a demo of the finished map described in this guide. Referencing the Plugin 2. Using the Plugin HTML Markup for Plugin Map Rendering 3. Bootstrap, from Twitter.

Sass - Syntactically Awesome Stylesheets. LESS « The Dynamic Stylesheet language. Bartaz/impress.js - GitHub.