background preloader

Html5shiv - HTML5 IE enabling script

Html5shiv - HTML5 IE enabling script
Dual licensed under the MIT or GPL Version 2 licenses Full original, uncompressed source available here: Source code adds new HTML5 elements (which is simple code), but also supports printing HTML5 elements and includes the default styles for HTML5 elements, like block on article and section. Getting it to work in the browser was easy, @jon_neal and afarkas made IE actually print HTML5 elements - these guys are to take all the credit. To use this script, download the html5shiv and roll it in to your own code (ideally minified). Common question: what's the difference between the html5shim and the html5shiv?

Designing CSS Layouts With Flexbox Is As Easy As Pie Advertisement This article is an updated excerpt of the chapter “Restyle, Recode, Reimagine With CSS3″ from our Smashing Book #3, written by Lea Verou and David Storey. — Ed. Flexible box layout (or flexbox) is a new box model optimized for UI layout. As one of the first CSS modules designed for actual layout (floats were really meant mostly for things such as wrapping text around images), it makes a lot of tasks much easier, or even possible at all. Flexbox’s repertoire includes the simple centering of elements (both horizontally and vertically), the expansion and contraction of elements to fill available space, and source-code independent layout, among others abilities. Flexbox has lived a storied existence. There are, however, some caveats. When you specify that an element will use the flexbox model, its children are laid out along either the horizontal or vertical axis, depending on the direction specified. Example: Horizontal And Vertical Centering (Or The Holy Grail Of Web Design) <!

HTML5 enabling script 7 Jan Since HTML5 is getting more attention by way of marking up our new pages, and the only way to get IE to acknowledge the new elements, such as <article>, is to use the HTML5 shiv, I’ve quickly put together a mini script that enables all the new elements. Download html5shiv.js and must be inserted in the head element (this is because IE needs to know about the element before it comes to render them – so it can’t sit in the footer of the page, i.e. below the elements in question). I’ve updated this post to link to Alexander Farkas’s version of the shiv – it’s the very latest and my simple one line script. The one I originally released was (I thought) beautifully small, but didn’t support print styles nor dynamic injection of HTML5 elements. Good thing there are smarter folk than I!

scottjehl/picturefill HTML5 This specification defines the 5th major version, second minor revision of the core language of the World Wide Web: the Hypertext Markup Language (HTML). In this version, new features continue to be introduced to help Web application authors, new elements continue to be introduced based on research into prevailing authoring practices, and special attention continues to be given to defining clear conformance criteria for user agents in an effort to improve interoperability. This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current W3C publications and the latest revision of this technical report can be found in the W3C technical reports index at This document was published by the Web Platform Working Group as a W3C Recommendation for HTML 5.2 that would obsolete the HTML 5.1 Recommendation. This document was produced by a group operating under the W3C Patent Policy.

Aspects & Reference (speaker website) HTML5 Reference It is useful to make a distinction between the vocabulary of an HTML document—the elements and attributes, and their meanings—and the syntax in which it is written. HTML has a defined set of elements and attributes which can be used in a document; each designed for a specific purpose with their own meaning. Consider this set of elements to be analogous to the list of words in a dictionary. This includes elements for headings, paragraphs, lists, tables, links, form controls and many other features. The basic structure of elements in an HTML document is a tree structure. 3.1 Syntactic Overview There are two syntaxes that can be used: the traditional HTML syntax, and the XHTML syntax. The HTML syntax is loosely based upon the older, though very widely used syntax from HTML 4.01. <! XHTML, however, is based on the much more strict XML syntax. 3.2 The Syntax There are a number of basic components make up the syntax of HTML, that are used throughout any document. 3.2.1 DOCTYPE Declaration end tag

Box Sizing The "box model" in CSS works like this: width + padding + border = actual visible/rendered width of box height + padding + border = actual visible/rendered height of box It's a little weird, but you get used to it. In IE 6 and earlier, when in "quirks mode," the box model was treated differently. width = actual visible/rendered width of box height = actual visible/rendered height of box The border and padding values moved inward, cutting into the width/height of the box rather than expanding it. It was weird quirk to have to deal with, although the fix was usually as easy as setting a proper DOCTYPE and getting out of quirks mode. The mind bending continues with the modern implementation. If you wanted to ensure the box kissed the edges of the parent, but still use a 100% width declaration, you'd have to set the child divs width to 476px. This <div> pseudo markup only takes us so far, because the answer of course is to not use a 100% width declaration. I would love a different box model!

HTML5 Tutorial - Welcome A Dao of Web Design What Zen was to the 70’s (most famously with motorcycle maintenance), the Tao Te Ching was to the 90’s. From Piglet and Pooh to Physics and back, many have sought sense in applying the Tao Te Ching to something (the Tao of Physics), or something to the Tao Te Ching (the Tao of Pooh). It can be a cheap trick, but lately it has struck me that there is more than a little to be understood about web design by looking through the prism of the Tao. Article Continues Below Daoism is a philosophy, like Buddhism, a way of living, of being in the world, which stems from a text of great antiquity, the Tao Te Ching, whose 81 “chapters” enigmatically sweep across human experience, but with a strong common theme, that of harmony. For the last couple of years, for better or worse, my life has revolved more than a little around style sheets. What I sense is a real tension between the web as we know it, and the web as it would be. Same old new medium? Controlling web pages#section2 [The Sage] The Way#section5

15 Useful HTML5 Tutorials and Cheat Sheets | Tutorials 1911 shares 8 Must-have Cheat Sheets for Web Designers and Developers As a web designer or developer, it’s nearly impossible to remember multiple programming languages, frameworks, and keyboard shortcuts to various applications. This is where cheat sheets can be a life saver. Most cheat sheets are designed to be printer friendly, so you can have them laying around on your desk as quick reference cards. So… Read More 2705 shares Photoshop CS6 Cheat Sheet Photoshop is one of the preferred tools of web designers, and like any other tool that is used over and over, it’s important to optimize one’s workflow by using keyboard shortcuts.

Marquee element An example of an HTML marquee displaying the text "Wikipedia" Usability problems[edit] Marquee can be distracting.[1] The human eye is attracted to movement,[2] and marquee text is constantly moving. As with the blink element, because the marquee tagged images or text are not always completely visible, it can make printing such webpages to a paper hard-copy an impossible and inefficient task where the specific printed pages where the messages on screen scroll or blink have to be printed multiple times to capture all the pieces of text that could be displayed at any one given moment in time. Because marquee text moves, links within it are more difficult to click than those in static text, depending on the speed and length of the scrolling. Attributes[edit] Unlike its blinking counterpart, the marquee element has several attributes that can be used to control and adjust the appearance of the marquee. Align Uses the same syntax as the img element. Behavior Bgcolor Direction Width Loop Scrollamount

Writing a 2D HTML game: Cycletrons At Cycle–IT we enjoy playing with whatever device, platform or language we happen to have at hand. If you have been following our updates, you know we are as excited as anyone else about the new possibilities that so–called HTML5 and related technologies are opening up for us, software developers. And of course, we welcome the myriad of new HTML–enabled devices that are shaking the ground of web development. Games, in its broader meaning, is a category of software which has been profoundly affected by all these recent changes. We are spoilt for performance on our browsers, too: 60 FPS is the new 24 FPS The average HTML game on your desktop browser or mobile phone today is likely to communicate with your social network of choice by default. Today we present to you Cycletrons — a little toy (fresh from the oven of CycleLabs) designed to showcase several interesting traits of modern 2D HTML games in a very simplified way. So, what there might be in Cycletrons for you to learn? Spinning around

(slides) Rocking RWD One Site. Every User. Every Device. Who am I? ( Josh Broton! Interactive Design Lead / Front-End Developer at VistaComm in Sioux Falls, SD Freelance: Design, front-end development, UX audits Front-end developer for Largest educational blog system in the world 3rd largest WP Multisite install in the world (unconfirmed)Largest WP MultiSite with single db in the world Computer & Network Security / Computer Science at DSU Responsive == ? A flexible, grid-based layout Flexible images and media Media queries used to determine layout Why RWD? The control which designers know in the print medium, and often desire in the web medium, is simply a function of the limitation of the printed page. -John Allsopp in "A Dao of Web Design" Why Do Responsive? What does he mean by "the ebb and flow of things?" How do you access the Internet? Some Stats Desktop vs. Impact?