

Foundation responsive columns upgrade#
Typically, developers build the mobile page first, but in this approach, he told me, you start with the mobile version and then “make the conscious decision to make the layout more complex and powerful as the devices used for the site become more full featured, have larger screens, etc.”Īll of these changes obviously mean that you can’t just upgrade from version 3 to 4. The browser will evenly distribute the available width into columns of at least this min width, and. column-width defines a minimum width each column needs to have. column-count allows you to define the number of columns that should be visible. It is a shorthand for column-count and column-width. This, ZURB partner and design lead Jonathan Smiley told me earlier today, means that ” the media queries in Foundation that determine what device sees which layout are reversed, meaning that you’re building the simple, mobile device layout first.” The CSS columns property is responsive by design. Now, in Foundation 4, these presentational classes have been replaced by a more semantic approach (,, etc.) that moves the definition of the layout into the SCSS definitions.įoundation 4 also features more mix-ins and placeholder classes, but besides the new semantic markup, the main difference from the last version is a focus on being mobile-first.
Foundation responsive columns code#
In previous versions of Foundation – just like in Bootstrap – developers would write code that focused very specifically on the layout of the page (think ). The team also made changes to how the developers and designers that use the framework write their code. Let’s create one First, we have to position our menu relative to the main menu so that they will be vertically aligned (on medium and up screens) and have an equal width (i.e.

ZURB says this is meant to ensure “that pages load quickly and efficiently given our mobile focus.” Given that Zepto is API-compatible with jQuery, developers can always switch back to the jQuery library, too. In addition to a number of other new features, the Foundation team also decided to switch away from jQuery and use the smaller and lighter Zepto.js library instead.

The company says this “empowers a designer to reverse their thinking ” and lets you “design for the mobile experience before you design for the desktop one.” The new version, ZURB tells us, has been completely rewritten from a mobile-first perspective. Product design company ZURB just launched the fourth version of Foundation, its responsive design framework that directly competes with Bootstrap.
