├── favicon.ico
├── img
└── html5rocks.png
├── README.md
├── css
└── screen.css
├── scripts
└── css3-mediaqueries.js
└── index.html
/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/crozynski/Fluid-Squares/HEAD/favicon.ico
--------------------------------------------------------------------------------
/img/html5rocks.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/crozynski/Fluid-Squares/HEAD/img/html5rocks.png
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Fluid-Squares
2 |
3 | ## What is it?
4 |
5 | A fluid grid of square units using HTML and CSS.
6 |
7 | Fluid Squares preserves a unit's square proportion within a fluid layout. The number of columns also reduce to suit browser or device width using CSS media queries.
8 |
9 | It works on all modern desktop browsers. Media queries are written Mobile First. IE8 doesn't support media queries, so the css3-mediaqueries.js polyfill is temporarily included.
10 |
11 | See [www.fluidsquares.com](http://www.fluidsquares.com) for more.
12 |
13 | ## What problem does Fluid Squares fix?
14 |
15 | Without a fix, the result of reducing a browser window's width squashes a fluid grid's squares into rectangles.
16 |
17 | To fix this each unit's padding-bottom size is set to match its width in percentages. On top of that each unit is a percentage of the global container to determine how many columns there are.
18 |
19 | Setting a unit's width to 25% and padding-bottom to 25% will give you four units in a row that will remain square regardless of screen size or browser window resizing.
20 |
21 | ## The ingredients
22 |
23 | ### HTML
24 |
25 | The basic structure of each unit is a div for content, which is nested in an anchor element:
26 |
27 | ````
28 |
29 |
Fluid Squares preserves a unit's square proportion within a fluid layout. Number of columns also reduce to suit browser or device width using CSS media queries.
15 | More about Fluid Squares 16 |V1 used a transparent image with max-width:100%. Marco Lago stepped up with a clever CSS method that eliminates the need for images. This new version also uses css3-mediaqueries.js (now works in IE) and is Mobile First.
23 | Marco Lago's CSS method 24 |Dive Into HTML5 seeks to elaborate on a hand-picked Selection of features from the HTML5 specification and other fine Standards. The final manuscript has been published...
48 | diveintohtml5.ep.io/ 49 |Watch the sldeshow that let's you play with HTML5 features. Jump headfirst into HTML5 by experimenting with each API. A showroom of content that you can reuse...
56 | html5rocks.com 57 |
63 | This specification evolves HTML and its related APIs to ease the authoring of Web-based applications...
70 | whatwg.org 71 |This HTML5 specification is like no other—It has been processed with you, the humble web developer, in mind...
78 | developers.whatwg.org 79 |HTML5 differences from HTML4.
WHATWG and HTML5 FAQ.
HTML5 validator.
HTML5 (changes) tracker...
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...
94 | remysharp.com 95 |Modernizr adds classes to the <html> element which allow you to target specific browser functionality in your stylesheet. You don't actually need to write any Javascript to use it...
102 | modernizr.com 103 |All the shims, fallbacks, and polyfills in order to implant html5 functionality in browsers that don't natively support them...
110 | github.com/Modernizr 111 |Along with HTML5 Boilerplate's rock solid commitment to cross-browser consistency, H5BP brings you delicious documentation, a site optimizing build script...
118 | html5boilerplate.com 119 |Now that modern browsers are starting to support some of the really useful parts of HTML5 and CSS3, it's time for our best practices to catch up...
126 | html5reset.org/ 127 |Initializr is an HTML5 templates generator to help you getting started with an HTML5 project. It is built on HTML5 Boilerplate...
134 | initializr.com 135 |Video for Everybody is simply a chunk of HTML code that embeds a video into a website using the HTML5 <video> element, falling back to Flash automatically...
142 | camendesign.com 143 |The HTML5 test score is only an indication of how well your browser supports the upcoming HTML5 standard and related specifications. It does not try to test all...
150 | html5test.com 151 |In order to deal both with content written according to Web standards...
158 | hsivonen.iki.fi 159 |Markup to test. DOM view. Rendered view. innerHTML view. Log.
166 | software.hixie.ch 167 |The number one suggestion I see from the proprietor of html5gallery.com to submitters is...
174 | camendesign.com 175 |Pixel to em conversion made simple. Select your body font size. Voila! Your conversions. Oh la la! Custom conversions...
182 | pxtoem.com 183 |Change the settings (by dragging the sliders, clicking on the bars, or editing the values) to calculate the overall width of your grid...
190 | www.29digital.net 191 |The Developer Tools, bundled and available in Chrome, allows web developers and programmers deep access...
198 | code.google.com/chrome 199 |It was close to four years ago now that I first floated (ha!), publicly refined, and then published at its own home what’s become known as...
206 | meyerweb.com 207 |The Exceptional Performance team has identified a number of best practices for making web pages fast. The list includes 35 best practices...
214 | developer.yahoo.com 215 |This document contains normative guidelines for web applications built by the Interface Development practice of Isobar North America...
222 | na.isobar.com/standards 223 |Read. Learn. Build. $.
230 | code.google.com/edu 231 |The Cross-Browser CSS3 Rule Generator. You can edit the underlined values in this css file, but don't worry about making sure the corresponding values match...
243 | css3please.com 244 |Another nice way to play with CSS3.
251 | css3generator.com 252 |Another nice way to play with CSS3.
259 | css3maker.com 260 |Although CSS isn’t that difficult, useful CSS techniques are not easy to find. Sometimes finding a cross-browser solution might take time...
267 | smashingmagazine.com 268 |CSS easing animation tool. Choose an easing type and test it out with a few effects. If you don’t quite like the easing, grab a handle and fix it...
275 | matthewlein.com/ceaser 276 |I don't use CSS hacks anymore. Instead I use IE's conditional comments to apply classes to the body tag. Nonetheless, I wanted to document every browser-specific...
283 | paulirish.com 284 |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?
291 | css-tricks.com 292 |One of the most effective ways of speeding up a website’s render time is to reduce the number of HTTP requests required to fetch content. An effective method...
299 | blog.mozilla.com 300 |PIE makes Internet Explorer 6-8 capable of rendering several of the most useful CSS3 decoration features.
307 | css3pie.com 308 |selectivizr is a JavaScript utility that emulates CSS3 pseudo-classes and attribute selectors in Internet Explorer 6-8. Simply include the script in your...
315 | selectivizr.com 316 |Comprehensive list of -webkit properties.
323 | css-infos.net 324 |CSS3 properties and selectors. HTML5 web applications, graphics, embedded content, audio and video, form inputs and attributes...
332 | findmebyip.com/litmus 333 |Great collection of videos at YUI Theater, particularly from Douglas Crockford on Javascript.
345 | developer.yahoo.com 346 |Node's goal is to provide an easy way to build scalable network programs. In the "hello world" web server example...
353 | nodejs.org 354 |Raphaël is a small JavaScript library that should simplify your work with vector graphics on the web. If you...
361 | raphaeljs.com 362 |JsFiddle is a playground for web developers, a tool which may be used in many ways. One can use it as an online editor for snippets...
369 | jsfiddle.net 370 |jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development...
377 | jquery.com 378 |Learn how easy it is to apply web interaction using jQuery...
386 | jqueryfordesigners.com 387 |JavaScript is the main client-side scripting language used by many of Google's open-source projects...
394 | google-styleguide.googlecode.com 395 |The brilliant Stoyan Stefanov, in promotion of his new book from O’Reilly, “JavaScript Patterns,” was kind enough to contribute an excerpt...
402 | net.tutsplus.com 403 |JavaScript Garden is a growing collection of documentation about the most quirky parts of the JavaScript programming language...
410 | bonsaiden.github.com 411 |JavaScript® (sometimes shortened to JS) is a lightweight, object-oriented language, most known as the scripting language for web pages...
418 | developer.mozilla.org 419 |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...
431 | alistapart.com 432 |A collection of responsive web designs...
439 | mediaqueri.es 440 |A media query consists of a media type and zero or more expressions that check for the conditions of particular media features...
447 | w3.org 448 |Unfortunately, CSS media query is fool’s gold for mobile devices. It hides tough problems and gives developers a false...
455 | cloudfour.com 456 |Early last year, I worked on the redesign of a rather content-heavy website. Design requirements were fairly light: the client as...
463 | alistapart.com 464 |I’ve always hated publishing. I don’t mean the industry, but the act. Hitting “print,” sending an email, pressing that “Publish” button on the CMS...
471 | unstoppablerobotninja.com 472 |Grid Layout contains features targeted at web application authors. The Grid can be used to achieve many different layouts...
483 | w3.org 484 |Templates for Rapid Interactive Prototyping...
492 | designinfluences.com 493 |Unlike most of the ready-made grid systems like BluePrint and 960.gs which are based on pixels — I wanted to base it all on ems...
500 | aplus.rs 501 |The foundational YUI Grids CSS offers four preset page widths, six preset templates, and the ability to stack and nest subdivided regions of two, three...
508 | developer.yahoo.com 509 |The happy and awesome way to build fluid grid based websites. Inspired by 1kbgrid.com. Developed with love by Girlfriend's overconfident...
516 | tinyfluidgrid.com 517 |Less Framework is a CSS grid system for designing adaptive websites. It contains 4 layouts and 3 sets of typography presets, all based on a single grid...
524 | lessframework.com 525 |Something that jumped at me, recently, was a rendering dilemma that browsers have to encounter, and gracefully handle, on a day-by-day basis with little...
533 | ejohn.org 534 |Almost a year ago, Ty Gossman over at Stylegala asked me to write an article about elastic layouts. The best I could do was a quick email between work...
541 | jontangerine.com 542 |This site is a proof of concept for many of the ideas described in Rethinking the Mobile Web...
554 | yiibu.com 555 |For years, most Web teams have designed for the desktop. Mobile, if it even happened, was a port off the desktop version, designed and built before...
563 | lukew.com 564 |This non-commercial brochure provides an overview on the different mobile technologies and platforms. 17 writers contributed their know-how...
571 | enough.de 572 |There are two main camps in the mobile web: One Web and Mobile Web...
579 | cloudfour.com 580 |Every month Opera conducts the definitive analysis of the key trends affecting the mobile Web worldwide. We publish these findings as...
588 | opera.com 589 |This document specifies Best Practices for delivering Web content to mobile devices....
596 | w3.org 597 |The past couple of years have seen numerous new web-capable mobile devices arise, including Apple’s iPhone and its Safari browser...
604 | alistapart.com 605 |Mobile Boilerplate is your trusted template made custom for creating rich and performant mobile web apps...
612 | html5boilerplate.com/mobile 613 |‘320 and Up’ prevents mobile devices from downloading desktop assets by using a tiny screen’s...
620 | stuffandnonsense.co.uk 621 |Web development vs. custom API frameworks. JQTouch, jQuery Mobile, PhoneGap, Sencha Touch, Titanium...
628 | dinosaurswithlaserz.com 629 |The goal of this technique is to deliver optimized, contextual image sizes for responsive layouts that utilize dramatically different...
636 | filamentgroup.com 637 |Tinysrc a fast, easy - and free - way to reformat graphics and images for mobile devices....
644 | tinysrc.net 645 |So you're a designer and have been tasked with the design of a mobile web site...
652 | mobiforge.com 653 |CSS contents and browser compatibility - mobile. My CSS tests, but now on mobile phones...
660 | quirksmode.org 661 |Based on aggregate data collected on a sample exceeding 15 billion pageviews per month collected from across...
668 | gs.statcounter.com 669 |Over the past two years at AdMob, we’ve experienced the rapid growth in consumer usage of the the mobile...
676 | metrics.admob.com 677 |This document specifies Best Practices for delivering Web content to mobile devices..
684 | w3.org 685 |This document gives general guidelines for web developers and content authors who are searching for directions to help create sites for the mobile web....
692 | www.passani.it 693 |This spreadsheet provides smart-phone information matter to front end mobile web developers...
700 | spreadsheets.google.com 701 |Designing for the mobile web is nothing particularly new - or rare. With pretty much every decent handset available providing the...
709 | campaignmonitor.com 710 |This section contains my official mobile pages. They treat various aspects of mobile web development...
718 | quirksmode.org 719 |This checker performs various tests on a Web Page to determine its level of mobile-friendliness. The tests are defined in the mobileOK Basic Tests 1.0 specification...
726 | validator.w3.org/mobile 727 |Chris Pederick's User Agent Switcher is an essential Firefox add-on for anybody in the business of creating mobile web sites...
734 | chrispederick.com 735 |Browser-based iPad emulator...
742 | alexw.me 743 |This is a web browser based simulator for quickly testing your iPhone web applications...
750 | testiphone.com 751 |Emulator accessible via webOS SDK...
758 | developer.palm.com 759 |Test your web app on Android, bypass Android's SDK (tested and works a charm).
766 | forum.xda-developers.com 767 |Welcome Developers! To view software for a BlackBerry product, please select a product from the drop down menu and click Select...
774 | swdownloads.blackberry.com 775 |Emulator accessible via Windows Mobile 6 SDK...
782 | swdownloads.blackberry.com 783 |Browser-based demo of Opera Mini 6 that functions as it would when installed on a handset...
790 | opera.com 791 |Emulator accessible via Symbian SDK...
798 | forum.nokia.com 799 |Great reference for laying out type on the web. The Vertical Motion chapter is particularly good.
810 | webtypography.net/toc 811 |In this article, we will reconcile the designer’s requirement for accuracy with the user’s need to resize text on demand, arriving at a best practice...
819 | alistapart.com 820 |This will change the way you design websites. Add a line of code to your pages and choose from hundreds of fonts. Simple, bulletproof, standards compliant, accessible, and totally legal.
827 | typekit.com 828 |The foundational CSS Fonts provides cross-browser typographical normalization and control while still allowing users to choose and adjust their font size...
835 | developer.yahoo.com 836 |