Inbox - jnavon - Gmail. CSS: the cascade, specificity, and inheritance. What is specificity?
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: 1 ID (b is 1)1 class, 1 attribute selector, and 1 pseudo-class (c is 3)1 element (d is 1) Therefore, it has a specificity of 0,1,3,1. What is inheritance? About ! The above should make it apparent that ! An ! HTML5 Boilerplate - A rock-solid default template for HTML5 awesome. 10 Beautiful Examples of Responsive Web Design. These days, everyone is consuming content differently.
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. CSS3 Browser Support and Information.
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. LiveReload. jQuery Air - First Flight. Web Design Tutorials. Subway Map Visualization jQuery Plugin » TechBubble. I have always been fascinated by the visual clarity of the London Underground map.
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. Need reasons to love Bootstrap?
Look no further. By nerds, for nerds. Built at Twitter by @mdo and @fat, Bootstrap utilizes LESS CSS, is compiled via Node, and is managed through GitHub to help nerds do awesome stuff on the web. Made for everyone. Bootstrap was made to not only look and behave great in the latest desktop browsers (as well as IE7!) Sass - Syntactically Awesome Stylesheets. LESS « The Dynamic Stylesheet language. Bartaz/impress.js - GitHub.