{"id":24597,"date":"2015-09-07T21:01:05","date_gmt":"2015-09-07T13:01:05","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=24597"},"modified":"2024-03-22T00:06:25","modified_gmt":"2024-03-21T16:06:25","slug":"building-website-foundation-5","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/building-website-foundation-5\/","title":{"rendered":"Accelerate Web Development with Foundation 5: A Comprehensive Guide"},"content":{"rendered":"<p>Adopting a frontend framework can revolutionize your web design process in several ways. It empowers you to adhere to modern design standards such as a mobile-first philosophy, semantic markup, and responsive design. By taking advantage of numerous pre-made CSS and JavaScript components, you can drastically <strong>enhance the speed of your development work<\/strong>, allowing you more time to concentrate on the aesthetics and user experience aspects.<\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/get.foundation\/index.html\">Zurb Foundation 5<\/a> stands out as one of the leading frontend frameworks available today. It\u2019s structured in a logical manner, user-friendly, and entirely free. The framework offers a <strong>versatile CSS grid system<\/strong> that aids in crafting neat, user-centric designs. Additionally, Foundation is thoroughly tested to ensure compatibility across different browsers and devices. See their <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/get.foundation\/docs\/compatibility.html\">compatibility guide<\/a> for more details.<\/p>\n<p>In this tutorial, I will guide you through <strong>how to quickly construct a website using Zurb Foundation 5<\/strong>. You can view the end result on the demo page. While I\u2019ll be setting up the site\u2019s layout, I\u2019ll leave the addition of subtle design touches to you. The site we\u2019re going to build together will fulfill every modern UX designer\u2019s wish: it will be responsive, prioritize mobile, be user-friendly, and maintain semantic integrity.<\/p>\n<p>This guide is quite detailed, so here are some shortcuts to help you navigate to specific sections more easily:<\/p>\n<ol>\n<li><a href=\"#1\">Downloading Foundation 5<\/a><\/li>\n<li><a href=\"#2\">Understanding the Grid<\/a> <\/li>\n<li><a href=\"#3\">Adding the Top Menu Bar<\/a><\/li>\n<li><a href=\"#4\">Filling the Main Section<\/a> <\/li>\n<li><a href=\"#5\">Enhancing The Sidebar<\/a> <\/li>\n<li><a href=\"#6\">Wrapping Up<\/a><\/li>\n<\/ol>\n<hr>\n<h2 id=\"1\">Downloading Foundation 5<\/h2>\n<p>You can <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/get.foundation\/sites\/docs-v5\/\">download Foundation 5<\/a> in four distinct variations:<\/p>\n<ol>\n<li>the complete package<\/li>\n<li>a basic version containing only essential components<\/li>\n<li>a customizable version allowing you to select specific features<\/li>\n<li>a Sass version for those who prefer to customize variables and mixins in SCSS<\/li>\n<\/ol>\n<p>For the purposes of this tutorial, I\u2019ll be using the Complete package with vanilla CSS. However, you\u2019re free to choose any version that suits your project\u2019s needs, enabling you to keep your site lean by using only the components you actually need.<\/p>\n<p>Once you\u2019ve downloaded and extracted the ZIP file, opening the index.html file in your browser will present you with a page similar to this:<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/building-website-foundation-5\/download-foundation.jpg\" alt=\"Foundation 5 Downloaded\" width=\"700\" height=\"507\"><\/figure>\n<p>Indeed, the developers have included useful links right within the index file. While you can start building on this template by creating a new file (perhaps naming it home.html), accessing the <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/get.foundation\/docs\/\">Foundation Documentation<\/a> is straightforward, rendering the preservation of this file unnecessary.<\/p>\n<p>Launch your preferred code editor and <strong>erase all content within the &lt;body&gt; tag, stopping just before the closing &lt;script&gt; tags<\/strong>.<\/p>\n<p>Modify the &lt;title&gt; tag within the &lt;head&gt; section to reflect your page\u2019s title; for instance, \u201cFoundation 5 Recipes\u201d will be my choice.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/building-website-foundation-5\/initial-index-file-code.jpg\" alt=\"Initial index file setup\" width=\"700\" height=\"394\"><\/figure>\n<p>The demonstration will be themed around food-related content, culminating in a final appearance akin to the following:<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/building-website-foundation-5\/final-demo-version.jpg\" alt=\"Final Demo Showcase\" width=\"700\" height=\"582\"><\/figure>\n<hr>\n<h2 id=\"2\">Understanding the Grid<\/h2>\n<p>By its design, Foundation 5 structures the screen using rows and columns. Rows are identified by the CSS class \u201crow\u201d and columns by the class \u201ccolumns\u201d.<\/p>\n<p>The naming of CSS selectors in Foundation is intuitive. The framework incorporates <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/get.foundation\/docs\/components\/grid.html\">three distinct grid systems<\/a>:<\/p>\n<ul>\n<li>Small Grid for mobile screens<\/li>\n<li>Medium Grid for tablets<\/li>\n<li>Large Grid for desktops<\/li>\n<\/ul>\n<p>The transitions between the Small, Medium, and Large Grids occur at screen widths of 641px and 1025px:<\/p>\n<ul>\n<li>Small Grid applies from 0 to 640px<\/li>\n<li>Medium Grid from 641 to 1024px<\/li>\n<li>Large Grid from 1025px onwards<\/li>\n<\/ul>\n<p>Each grid system consists of 12 columns by default, a choice made because the number 12 is divisible by 2, 3, 4, and 6, offering numerous layout possibilities.<\/p>\n<p>Should you opt for the \u201cCustom Download\u201d at the initial step, you have the flexibility to choose a different number of columns for more complex designs. However, we\u2019ll stick to the standard 12 columns for this example.<\/p>\n<p>Our planned layout will consist of a single large column on mobile and tablet views, and include a right sidebar on desktop views. Here\u2019s a screenshot of the intended desktop layout filled with <a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/www.cupcakeipsum.com\/\">Cupcake Ipsum<\/a> placeholder content:<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/building-website-foundation-5\/understand-the-grid.jpg\" alt=\"Grid Layout Example\" width=\"700\" height=\"241\"><\/figure>\n<p>A crucial practice is to <strong>maintain a clean grid structure<\/strong>.<\/p>\n<p>Always start by adding a \u201crow\u201d. Within this row, you\u2019ll insert columns, ensuring their total number equals 12. Deviating from this total disrupts the grid\u2019s functionality.<\/p>\n<p>In our desktop example, I\u2019ve allocated 8 columns for the main content on the left and 4 columns for the sidebar on the right.<\/p>\n<p>Let\u2019s examine the corresponding code. First, we define a &lt;div&gt; with the \u201crow\u201d class to encompass the entire page layout. It\u2019s possible to nest additional rows within this primary one, as Foundation allows for unlimited nesting of rows and columns. Within every row, columns must be defined that collectively equal 12. These columns are designated with the \u201ccolumns\u201d class and an appropriate \u201clarge-n\u201d, \u201cmedium-n\u201d, or \u201csmall-n\u201d class to specify their size.<\/p>\n<pre>\r\n &lt;div class=\"row\"&gt; \r\n\t &lt;div class=\"large-8 columns\"&gt;\r\n\t &lt;p&gt;Content for the Main Section&lt;\/p&gt;\r\n\t &lt;\/div&gt;\r\n\t \r\n\t &lt;aside class=\"large-4 columns\"&gt;\r\n\t &lt;p&gt;Content for the Sidebar&lt;\/p&gt;\r\n &lt;\/aside&gt; \r\n &lt;\/div&gt;\r\n<\/pre>\n<h3 id=\"2.1\">Choosing Between Large-n, Medium-n, and Small-n Classes<\/h3>\n<p>You may be wondering why I specified only the \u201clarge-8\u201d and \u201clarge-4\u201d classes without addressing the Small and Medium Grids. Recall that our layout plan includes a sidebar exclusively at desktop sizes, corresponding to the Large Grid, while mobile and tablet sizes feature a singular, expansive column.<\/p>\n<p>Foundation\u2019s logic is simple: you only need to specify the <strong>smallest<\/strong> grid size that your layout will adapt to. This approach ensures your layout is responsive and adaptable across devices.<\/p>\n<p>To better understand, try resizing your browser window to see how the layout adjusts. With the current code, you\u2019ll observe that the sidebar automatically repositions under the main content on mobile and tablet views.<\/p>\n<p>Modify the \u201clarge-8\u201d and \u201clarge-4\u201d classes to \u201cmedium-8\u201d and \u201cmedium-4\u201d and notice the layout now includes a sidebar for both tablet and desktop views, but excludes mobile. This highlights the importance of setting the smallest grid size necessary for your desired layout.<\/p>\n<p>For experimentation, switch the classes to \u201csmall-8\u201d and \u201csmall-4\u201d. This change will render the sidebar visible across all device sizes, including mobile.<\/p>\n<p>Foundation 5 emphasizes a mobile-first approach to web development. This means you should prioritize mobile screen design since, within the Foundation framework, <strong>larger grids inherit the styling of their smaller counterparts<\/strong>, but not vice versa. Thus, the Medium and Large Grids build upon the Small Grid\u2019s foundation, and the Large Grid extends the Medium Grid\u2019s styling, ensuring a seamless transition across devices.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/building-website-foundation-5\/responsive-framework.jpg\" alt=\"Responsive Framework Visualization\" width=\"700\" height=\"227\"><\/figure>\n<hr>\n<h2 id=\"3\">Adding the Top Menu Bar<\/h2>\n<p>For the third step, we\u2019re going to enhance our site with a Top Menu Bar that includes a two-level dropdown submenu. This top bar isn\u2019t part of the 2:1 desktop layout from Step 2. Thus, you should insert the code snippet we\u2019ll craft in this step above the layout code added previously.<\/p>\n<p>The top menu bar will feature the site\u2019s name (\u201cFoundation 5 Recipes\u201d) on the left, accompanied by various menu items. On the right, we\u2019ll place two utility menu items for added functionality.<\/p>\n<p>By the end of this step, our site will present itself like this:<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/building-website-foundation-5\/add-the-top-bar.jpg\" alt=\"Site with Top Bar Added\" width=\"700\" height=\"263\"><\/figure>\n<p>We\u2019ll achieve this look by utilizing the <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/get.foundation\/docs\/components\/topbar.html\">Top Bar feature<\/a> from Foundation 5, ensuring semantic correctness by nesting the top menu bar within a <strong>&lt;header&gt;<\/strong> tag.<\/p>\n<p>The following code is a modified version from the official <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/get.foundation\/docs\/components\/topbar.html\">Foundation documentation<\/a>. I\u2019ve made slight adjustments by adding content and altering the order of list elements for a more customized feel. Class names like \u201chas-dropdown\u201d and \u201cdropdown\u201d clearly indicate their functionality. Additionally, I\u2019ve applied Foundation\u2019s \u201ccontain-to-grid\u201d and \u201csticky\u201d classes to the header for a fixed position effect.<\/p>\n<pre>\r\n&lt;header class=\"contain-to-grid sticky\"&gt;\r\n  &lt;nav class=\"top-bar\" data-topbar role=\"navigation\"&gt;\r\n    &lt;ul class=\"title-area\"&gt;\r\n      &lt;li class=\"name\"&gt;&lt;h1&gt;&lt;a href=\"#\"&gt;Foundation 5 Recipes&lt;\/a&gt;&lt;\/h1&gt;&lt;\/li&gt;\r\n      &lt;li class=\"toggle-topbar menu-icon\"&gt;&lt;a href=\"#\"&gt;&lt;span&gt;Menu&lt;\/span&gt;&lt;\/a&gt;&lt;\/li&gt;\r\n    &lt;\/ul&gt;\r\n    &lt;section class=\"top-bar-section\"&gt;\r\n      &lt;ul class=\"left\"&gt;\r\n        &lt;li class=\"active\"&gt;&lt;a href=\"#\"&gt;Home&lt;\/a&gt;&lt;\/li&gt;\r\n        &lt;li&gt;&lt;a href=\"#\"&gt;About&lt;\/a&gt;&lt;\/li&gt;\r\n        &lt;li class=\"has-dropdown\"&gt;&lt;a href=\"#\"&gt;Recipes&lt;\/a&gt;\r\n          &lt;ul class=\"dropdown\"&gt;\r\n            &lt;li&gt;&lt;a href=\"#\"&gt;Main dishes&lt;\/a&gt;&lt;\/li&gt;\r\n            &lt;li&gt;&lt;a href=\"#\"&gt;Side dishes&lt;\/a&gt;&lt;\/li&gt;\r\n            &lt;li class=\"has-dropdown\"&gt;&lt;a href=\"#\"&gt;Desserts&lt;\/a&gt;\r\n              &lt;ul class=\"dropdown\"&gt;\r\n                &lt;li&gt;&lt;a href=\"#\"&gt;Cupcakes&lt;\/a&gt;&lt;\/li&gt;\r\n                &lt;li&gt;&lt;a href=\"#\"&gt;Ice creams&lt;\/a&gt;&lt;\/li&gt;\r\n                &lt;li&gt;&lt;a href=\"#\"&gt;Brownies&lt;\/a&gt;&lt;\/li&gt;\r\n              &lt;\/ul&gt;\r\n            &lt;\/li&gt;\r\n          &lt;\/ul&gt;\r\n        &lt;\/li&gt;\r\n        &lt;li&gt;&lt;a href=\"#\"&gt;Blog&lt;\/a&gt;&lt;\/li&gt;\r\n      &lt;\/ul&gt;\r\n      &lt;ul class=\"right\"&gt;\r\n        &lt;li&gt;&lt;a href=\"#\"&gt;Contact Us&lt;\/a&gt;&lt;\/li&gt;\r\n        &lt;li&gt;&lt;a href=\"#\"&gt;FAQ&lt;\/a&gt;&lt;\/li&gt;\r\n      &lt;\/ul&gt;\r\n    &lt;\/section&gt;\r\n  &lt;\/nav&gt;\r\n&lt;\/header&gt;\r\n\r\n <\/pre>\n<p>If you copy-pasted this snippet into your index file, take a quick peek on it on mobile size and check out how cool it looks.<\/p>\n<hr>\n<h2 id=\"4\">Filling the Main Content Area<\/h2>\n<p>In this step, we focus on enriching the main content area of our webpage. All code snippets introduced here <strong>should be placed within the &lt;div class=\u201dlarge-8 columns\u201d&gt;<\/strong> segment established in Step 2.<\/p>\n<p>By completing this stage, our demo site\u2019s appearance will significantly enhance, closely resembling the following:<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/building-website-foundation-5\/main-content-ready.jpg\" alt=\"Enhanced Main Content Area\" width=\"700\" height=\"530\"><\/figure>\n<h3>Adding a Popular Posts Panel<\/h3>\n<p>We begin by introducing a \u201cPopular\u201d section, showcased within a light gray box in the screenshot above, utilizing a <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/get.foundation\/docs\/components\/panels.html\">Foundation Panel<\/a>.<\/p>\n<p>Step 4.1 involves crafting a prominent post, depicted in the demo as \u201cSummer Salad\u201d, accompanied by a large image and a succinct description. Following this, in Step 4.2, we will append three smaller, popular posts with lesser-sized images below it.<\/p>\n<p>This entire section is encapsulated within the \u201cpanel\u201d class, a preset CSS class by Foundation 5. Within this panel, we insert a new row, our initial nested row. On tablet and desktop views, this row is equally divided: one half for the image and the other for the subtitle and description.<\/p>\n<p>Given the small screen\u2019s limitations, where the image would appear minuscule, we opt for positioning the text beneath the image. Setting this 50-50 layout from the medium screen onwards, we employ the \u201cmedium-6 columns\u201d CSS class for the columns.<\/p>\n<p>Additionally, a custom CSS class named \u201cpopular-main\u201d is applied to the nested row. This is not a Foundation 5 class but our own, added to facilitate the integration of personalized style rules. Feel free to incorporate as many custom CSS selectors into your Foundation project as desired.<\/p>\n<pre>\r\n&lt;div class=\"panel\"&gt;\r\n  &lt;div class=\"row popular-main\"&gt;\r\n    &lt;div class=\"medium-6 columns\"&gt;\r\n      &lt;img src=\"img\/summer-salad.jpg\" alt=\"Summer Salad\"&gt;\r\n    &lt;\/div&gt;\r\n    &lt;div class=\"medium-6 columns\"&gt;\r\n      &lt;h3&gt;&lt;a href=\"#\"&gt;Summer Salad&lt;\/a&gt;&lt;\/h3&gt;\r\n      &lt;p&gt;This summer salad will be the star of every garden party. It's made of tomatoes, cucumber, black olives and lettuce...&lt;\/p&gt;\r\n    &lt;\/div&gt;\r\n  &lt;\/div&gt;\r\n  &lt;!-- Additional Popular Posts will come here in Step 4.2 --&gt;\r\n&lt;\/div&gt;\r\n\r\n <\/pre>\n<h3>Adding 3 More Posts to the Popular Panel<\/h3>\n<p>We want to show the 3 additional posts only to tablet and desktop visitors, as 4 popular posts inside the Popular Panel would be too much distraction for people who will browse our site on small screens.<\/p>\n<p>To achieve this goal we will make use of Foundation 5\u2019s handy <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/get.foundation\/docs\/components\/visibility.html\">visibility classes<\/a>. Foundation has many of them and their names such as \u201cshow-for-small-only\u201d and \u201chide-for-large-up\u201d clearly describe what they do.<\/p>\n<p>Here we will choose the \u201cshow-for-medium-up\u201d which will show the additional posts only on tablet and desktop size. Just like in Step 4.1, we will use the medium-n classes here too, as the smallest screen we want to show this layout is the tablet screen.<\/p>\n<p>As this time we want to divide the row into 3 equal columns, we use the \u201cmedium-4 columns\u201d CSS selector 3 times. We also add our own CSS class called \u201cpopular-additional\u201d with the purpose of facilitating the custom styling later.<\/p>\n<pre>\r\n&lt;div class=\"row popular-additional show-for-medium-up\"&gt;\r\n  &lt;div class=\"medium-4 columns\"&gt;\r\n    &lt;img src=\"img\/cheese.jpg\" alt=\"Cheese\"&gt;\r\n    &lt;h4&gt;&lt;a href=\"#\"&gt;Cheese with Fruits&lt;\/a&gt;&lt;\/h4&gt;\r\n  &lt;\/div&gt;\r\n  &lt;div class=\"medium-4 columns\"&gt;\r\n    &lt;img src=\"img\/ice-cream.jpg\" alt=\"Ice Cream\"&gt;\r\n    &lt;h4&gt;&lt;a href=\"#\"&gt;Ice Cream&lt;\/a&gt;&lt;\/h4&gt;\r\n  &lt;\/div&gt;\r\n  &lt;div class=\"medium-4 columns\"&gt;\r\n    &lt;img src=\"img\/italian-salad.jpg\" alt=\"Italian Salad\"&gt;\r\n    &lt;h4&gt;&lt;a href=\"#\"&gt;Italian Salad&lt;\/a&gt;&lt;\/h4&gt;\r\n  &lt;\/div&gt;\r\n&lt;\/div&gt;\r\n\r\n <\/pre>\n<h3>Prettying Up the CSS<\/h3>\n<p>If you followed this tutorial by creating your own demo code you will see that our demo site has some layout flaws (see below), so it\u2019s\n  time to add some layout adjustments to our CSS.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/building-website-foundation-5\/less-pretty-css.jpg\" alt=\"Less Pretty CSS\" width=\"700\" height=\"325\"><\/figure>\n<p>To add our own style we will create a custom CSS file called <strong>app.css<\/strong> (like how the Foundation Docs recommend it in the <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/get.foundation\/docs\/css.html\">CSS Best Practices<\/a> section).<\/p>\n<p>Let\u2019s open up the <strong>\/css<\/strong> folder in our demo folder, create an empty text file and name it <strong>app.css<\/strong>. Finally open it up in a text editor.<\/p>\n<p>Of course we also need to add the new custom CSS file to the <strong>&lt;head&gt;<\/strong> section of the <strong>index.html<\/strong> file <em>below<\/em> the <strong>foundation.css<\/strong> stylesheet. Now the &lt;head&gt; section of the index file looks like this:<\/p>\n<pre>\r\n&lt;head&gt;\r\n  &lt;meta charset=\"utf-8\" \/&gt;\r\n  &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" \/&gt;\r\n  &lt;title&gt;Foundation 5 Recipes&lt;\/title&gt;\r\n  &lt;link rel=\"stylesheet\" href=\"css\/foundation.css\" \/&gt;\r\n  &lt;link rel=\"stylesheet\" href=\"css\/app.css\" \/&gt;\r\n  &lt;script src=\"js\/vendor\/modernizr.js\"&gt;&lt;\/script&gt;\r\n&lt;\/head&gt;\r\n\r\n <\/pre>\n<p>The style rules that we add to the <strong>app.css<\/strong> file to pretty up our prototype are these:<\/p>\n<pre>\r\nheader {\r\n  margin-bottom: 2em;\r\n}\r\n.popular-additional h4 {\r\n  font-size: 1.125em;\r\n  margin-top: 0.4em;\r\n}\r\n.row .row.popular-main {\r\n  margin-bottom: 1.5em;\r\n}\r\n\r\n <\/pre>\n<p>As Foundation 5 uses relative units, <strong>we need to use \u201cem\u201d-s or \u201crem\u201d-s instead of pixels<\/strong> to keep up with the rules. (You can read about CSS units: Pixels vs ems vs % <a href=\"https:\/\/www.hongkiat.com\/blog\/css-units\/\">here<\/a>.) I used Firefox\u2019s <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/getfirebug.com\/\">Firebug<\/a> extension to determine where I have to override Foundation 5\u2019s CSS rules, you can use any other web development browser extensions if you want.<\/p>\n<p>Here in this short CSS snippet we only had to override Foundation\u2019s default CSS only once, at the last rule (.row .row.popular-main). Here\u2019s what the demo site looks like now:<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/building-website-foundation-5\/prettier-css.jpg\" alt=\"Prettier CSS\" width=\"700\" height=\"349\"><\/figure>\n<h3>Adding Some More Content<\/h3>\n<p>Using the same rules as before we will add some more content to the main section of the page. The content that we will add now will be the <strong>Latest Posts<\/strong> with small thumbnails.<\/p>\n<p>Foundation 5 has really cool pre-prepared <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/get.foundation\/docs\/components\/thumbnails.html\">thumbnail styles<\/a> that we will make use of in this Step. Foundation Thumbnails use a <strong>pre-built CSS class called \u201cth\u201d<\/strong> that we need to add to the images we want to display as thumbnails in the way you can see it in the code snippet below.<\/p>\n<p>For each Latest Post we add a new row below the Popular Panel with our <strong>custom CSS class called \u201clatest-post\u201d<\/strong>.<\/p>\n<p>On tablet and desktop size we will show a small thumbnail using Foundation\u2019s thumbnail class on the left, and the title and a short description on the right. On mobile, the headline and the description will go below the thumbnail.<\/p>\n<p>Now I used the \u201cmedium-3 columns\u201d and \u201cmedium-9 columns\u201d classes to make them divide the screen into 1:3, 25% for the image and75% for the text up from medium size.<\/p>\n<p>Insert the following code snippet below the Popular Panel three times (for the three Latest Posts). Here I just include the code of one Latest Post row, as all of them use the same HTML markup, only the content differs.<\/p>\n<pre>\r\n&lt;div class=\"row latest-post\"&gt;\r\n  &lt;div class=\"medium-3 columns\"&gt;\r\n    &lt;a class=\"th\" href=\"img\/full-size-image.jpg\"&gt;\r\n      &lt;img src=\"img\/thumbnail-size-image.jpg\" alt&gt;\r\n    &lt;\/a&gt;\r\n  &lt;\/div&gt;\r\n  &lt;div class=\"medium-9 columns\"&gt;\r\n    &lt;h4&gt;&lt;a href=\"#\"&gt;Title of Latest Post&lt;\/a&gt;&lt;\/h4&gt;\r\n    &lt;p&gt;Content of Latest Post... &lt;\/p&gt;\r\n  &lt;\/div&gt;\r\n&lt;\/div&gt;\r\n\r\n <\/pre>\n<p>Our custom CSS file created in Step 4.3, <strong>app.css<\/strong> also gets some new style rules to keep the looks of the demo tidy. <strong>Note<\/strong>: If you want to add your own custom CSS to Foundation, never forget to check, with a web dev tool, where you have to override the default rules.<\/p>\n<p>In the CSS snippet below we need to override them in the first rule (.row .row.latest-post). In the second rule it\u2019s enough to just use our own custom selector (.latest-post h4).<\/p>\n<pre>\r\n.row .row.latest-post {\r\n  margin-bottom: 1.5em;\r\n}\r\n.latest-post h4 {\r\n  margin-top: 0;\r\n  font-size: 1.125em;\r\n}\r\n<\/pre>\n<p>Our prototype now looks like this:<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/building-website-foundation-5\/adding-latest-posts.jpg\" alt=\"Adding Latest Posts\" width=\"700\" height=\"504\"><\/figure>\n<h3>Adding Pagination<a name=\"4.5\"><\/a><\/h3>\n<p>In this step we will add a cool pagination below the Latest Posts. Foundation 5 gives us a helping hand by its convenient, ready-to-use <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/get.foundation\/docs\/components\/pagination.html\">pagination classes<\/a>. We use the same code in this step that you can find in the \u201cAdvanced\u201d section inside the <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/get.foundation\/docs\/components\/pagination.html\">Pagination Docs<\/a>.<\/p>\n<pre>\r\n&lt;div class=\"pagination-centered\"&gt;\r\n  &lt;ul class=\"pagination\"&gt;\r\n    &lt;li class=\"arrow unavailable\"&gt;&lt;a href&gt;\u00ab&lt;\/a&gt;&lt;\/li&gt;\r\n    &lt;li class=\"current\"&gt;&lt;a href&gt;1&lt;\/a&gt;&lt;\/li&gt;\r\n    &lt;li&gt;&lt;a href&gt;2&lt;\/a&gt;&lt;\/li&gt;\r\n    &lt;li&gt;&lt;a href&gt;3&lt;\/a&gt;&lt;\/li&gt;\r\n    &lt;li&gt;&lt;a href&gt;4&lt;\/a&gt;&lt;\/li&gt;\r\n    &lt;li class=\"unavailable\"&gt;&lt;a href&gt;\u2026&lt;\/a&gt;&lt;\/li&gt;\r\n    &lt;li&gt;&lt;a href&gt;12&lt;\/a&gt;&lt;\/li&gt;\r\n    &lt;li&gt;&lt;a href&gt;13&lt;\/a&gt;&lt;\/li&gt;\r\n    &lt;li class=\"arrow\"&gt;&lt;a href&gt;\u00bb&lt;\/a&gt;&lt;\/li&gt;\r\n  &lt;\/ul&gt;\r\n&lt;\/div&gt;\r\n<\/pre>\n<p>Here are the Latest Posts with the newly added Pagination section:<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/building-website-foundation-5\/the-pagination.jpg\" alt=\"Latest Posts with the Pagination\" width=\"700\" height=\"452\"><\/figure>\n<hr>\n<h2 id=\"5\">Populating the Sidebar<a name=\"5\"><\/a><\/h2>\n<p>Now that we are ready with the main content of our demo site, it\u2019s time to populate the right sidebar. The right sidebar will slip below the main content on mobile and tablet sizes.<\/p>\n<p>You need to insert all the code snippets in this section inside the &lt;aside class=\u201dlarge-4 columns\u201d&gt; HTML tag that we set for the sidebar in Step 2.<\/p>\n<p>The left sidebar will contain a Newsletter Sign Up Form (1), a Latest Video (2) and an accordion-style Sidebar Menu under the nickname \u201cOur Cookbook\u201d (3).<\/p>\n<p>At the end of this step we will be ready with our demo that will look like this:<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/building-website-foundation-5\/final-demo-version.jpg\" alt=\"Final Demo Version\" width=\"700\" height=\"582\"><\/figure>\n<h3>The Newsletter Form<a name=\"5.1\"><\/a><\/h3>\n<p>To build a form in Foundation 5, you don\u2019t have to do anything else, just place the grid inside a <strong>&lt;form&gt;<\/strong> HTML tag.<\/p>\n<p>If you take a look at the code snippet below, you will see that we put the form in a row in which we set different CSS selectors for all the 3 grids: \u201csmall-12\u201d, \u201cmedium-9\u201d, and \u201clarge-12\u201d.<\/p>\n<p>We chose this solution because a 100% wide Newsletter Form looks cool on mobile size, but it\u2019s really really awkward on tablet size as it becomes <em>very<\/em> wide. Luckily Foundation 5 lets us use \u201cIncomplete Rows\u201d: we just have to add the \u201cend\u201d class to the CSS class definition of the incomplete column.<\/p>\n<p>So this is what\u2019s going to happen here: on mobile size the sidebar will be displayed below the main content with a Newsletter Sign Up Form that covers the whole screen.<\/p>\n<p>On medium size the sidebar will remain under the main content, but the Newsletter Form will just cover the 75% of the screen, and the remaining 25% will stay empty.<\/p>\n<p>On desktop size the sidebar will be right next to the main content, and the Newsletter Form will cover the whole width of the sidebar again.<\/p>\n<p>See the <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/get.foundation\/docs\/components\/grid.html\">Grid Docs<\/a> to read more about Incomplete Rows.<\/p>\n<pre>\r\n&lt;div class=\"row\"&gt;\r\n  &lt;div class=\"small-12 medium-9 large-12 columns end\"&gt;\r\n    &lt;h5&gt;Sign Up To Our Newsletter&lt;\/h5&gt;\r\n    &lt;form&gt;\r\n      &lt;div class=\"row collapse\"&gt;\r\n        &lt;div class=\"small-8 columns\"&gt;\r\n          &lt;input type=\"text\" placeholder=\"your@ema.il\"&gt;\r\n        &lt;\/div&gt;\r\n        &lt;div class=\"small-4 columns\"&gt;\r\n          &lt;a href=\"#\" class=\"button postfix\"&gt;Send&lt;\/a&gt;\r\n        &lt;\/div&gt;\r\n      &lt;\/div&gt;\r\n    &lt;\/form&gt;\r\n  &lt;\/div&gt;\r\n&lt;\/div&gt;\r\n<\/pre>\n<p>Now take a look inside the &lt;form&gt; tag in the code snippet above. We use Foundation\u2019s built-in form system with the Postfix Button option (class=\u201dbutton postfix\u201d).<\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/get.foundation\/docs\/components\/forms.html\">Foundation Forms <\/a>have many other layout options such as Prefix Label, Prefix Radius Label, Postfix Button, and Postfix Label. We chose the Postfix Button option here as it\u2019s more\n  user-friendly: users can click on it and send the form at once.<\/p>\n<p>Inside the form we will add a new nested row that divides the screen to 2:1. The text input will get 8 columns and the postfix button will get 4. As we want to have this layout even on mobile screen, we will set the \u201csmall-8 columns\u201d and \u201csmall-4 columns\u201d CSS-selectors here, the Small Grid being the smallest size where we want to implement this markup.<\/p>\n<p>You can see another new thing in the HTML code above which is the \u201crow collapse\u201d class. This is Foundation 5\u2019s built-in style. By default there is a gutter between two adjacent columns, but <strong>if we add the \u201ccollapse\u201d class to our row, the gutter will disappear<\/strong>. We do this because we want the button to be right next to the text input without any space between them.<\/p>\n<p>Now it\u2019s time to insert this code snippet into the &lt;aside&gt; section of your HTML file.<\/p>\n<h3>Flex Video<a name=\"5.2\"><\/a><\/h3>\n<p>Below the Newsletter Section we will add a Daily Video Recipe to our sidebar. Foundation 5 helps us <strong>make embedded videos responsive and force them to scale automatically<\/strong> with its <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/get.foundation\/docs\/components\/flex_video.html\">Flex Video<\/a> feature.<\/p>\n<p>Flex Videos use the built-in \u201cflex-video\u201d CSS class. We create a new row for the Daily Video Recipe sidebar section and place one wide column in it with the \u201csmall-12 medium-9 large-12 columns end\u201d CSS selectors for the same reason we used an incomplete row in the Medium Grid in the previous step.<\/p>\n<p>Here is the code you need to paste below the Newsletter Section. You can use any video from Youtube, Vimeo etc.<\/p>\n<pre>\r\n&lt;div class=\"row\"&gt;\r\n  &lt;div class=\"small-12 medium-9 large-12 columns end\"&gt;\r\n    &lt;h5&gt;Daily Video Recipe&lt;\/h5&gt;\r\n    &lt;div class=\"flex-video\"&gt;\r\n      &lt;iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/PAtt_K3Tjjk\" frameborder=\"0\" allowfullscreen&gt;&lt;\/iframe&gt;\r\n    &lt;\/div&gt;\r\n  &lt;\/div&gt;\r\n&lt;\/div&gt;\r\n<\/pre>\n<h3>The Sidebar Menu<a name=\"5.3\"><\/a><\/h3>\n<p>For the Sidebar Menu we will use the <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/get.foundation\/docs\/components\/accordion.html\">Accordion<\/a> feature of Foundation 5. Accordions are web elements that expand and collapse the content into logical sections.<\/p>\n<p>On our demo site these logical sections are the 3 different food groups (Main Dishes, Side Dishes, Desserts), and each group contains more smaller groups such as \u201cPoultry\u201d, \u201cPork\u201d, \u201cBeef\u201d, \u201cVegetarian\u201d.<\/p>\n<p>We place the whole sidebar Accordion into one wide column with the same logic as in the 5.1 and 5.2 Steps before. We put the accordion inside it as an unordered list with the appropriate built-in CSS classes such as \u201caccordion\u201d and \u201caccordion-navigation\u201d.<\/p>\n<p>As Foundation Accordions work with JavaScript, you can customize its behavior with the help of pre-built JavaScript variables if you want. To do so, look at the \u201cOptional JavaScript Configuration\u201d section in the <a href=\"https:\/\/get.foundation\/docs\/components\/accordion.html\" rel=\"nofollow\">Accordion Docs<\/a>. The following code snippet comes below the Flex Video section inside the index.html file.<\/p>\n<pre>\r\n&lt;div class=\"row\"&gt;\r\n  &lt;div class=\"small-12 medium-9 large-12 columns end\"&gt;\r\n    &lt;h5&gt;Our Cookbook&lt;\/h5&gt;\r\n    &lt;ul class=\"accordion\" data-accordion&gt;\r\n      &lt;li class=\"accordion-navigation\"&gt;\r\n        &lt;a href=\"#panel1a\"&gt;Main dishes&lt;\/a&gt;\r\n        &lt;div id=\"panel1a\" class=\"content active\"&gt;\r\n          &lt;ul&gt;\r\n            &lt;li&gt;&lt;a href=\"#\"&gt;Poultry&lt;\/a&gt;&lt;\/li&gt;\r\n            &lt;li&gt;&lt;a href=\"#\"&gt;Pork&lt;\/a&gt;&lt;\/li&gt;\r\n            &lt;li&gt;&lt;a href=\"#\"&gt;Beef&lt;\/a&gt;&lt;\/li&gt;\r\n            &lt;li&gt;&lt;a href=\"#\"&gt;Vegetarian&lt;\/a&gt;&lt;\/li&gt;\r\n          &lt;\/ul&gt;\r\n        &lt;\/div&gt;\r\n      &lt;\/li&gt;\r\n      &lt;li class=\"accordion-navigation\"&gt;\r\n        &lt;a href=\"#panel2a\"&gt;Side dishes&lt;\/a&gt;\r\n        &lt;div id=\"panel2a\" class=\"content\"&gt;\r\n          &lt;ul&gt;\r\n            &lt;li&gt;&lt;a href=\"#\"&gt;Potato dishes&lt;\/a&gt;&lt;\/li&gt;\r\n            &lt;li&gt;&lt;a href=\"#\"&gt;Vegetables&lt;\/a&gt;&lt;\/li&gt;\r\n            &lt;li&gt;&lt;a href=\"#\"&gt;Salads&lt;\/a&gt;&lt;\/li&gt;\r\n            &lt;li&gt;&lt;a href=\"#\"&gt;Rice recipes&lt;\/a&gt;&lt;\/li&gt;\r\n          &lt;\/ul&gt;\r\n        &lt;\/div&gt;\r\n      &lt;\/li&gt;\r\n      &lt;li class=\"accordion-navigation\"&gt;\r\n        &lt;a href=\"#panel3a\"&gt;Desserts&lt;\/a&gt;\r\n        &lt;div id=\"panel3a\" class=\"content\"&gt;\r\n          &lt;ul&gt;\r\n            &lt;li&gt;&lt;a href=\"#\"&gt;Fruit cakes&lt;\/a&gt;&lt;\/li&gt;\r\n            &lt;li&gt;&lt;a href=\"#\"&gt;Brownies&lt;\/a&gt;&lt;\/li&gt;\r\n            &lt;li&gt;&lt;a href=\"#\"&gt;Ice creams&lt;\/a&gt;&lt;\/li&gt;\r\n            &lt;li&gt;&lt;a href=\"#\"&gt;Pies&lt;\/a&gt;&lt;\/li&gt;\r\n          &lt;\/ul&gt;\r\n        &lt;\/div&gt;\r\n      &lt;\/li&gt;\r\n    &lt;\/ul&gt;\r\n  &lt;\/div&gt;\r\n&lt;\/div&gt;\r\n<\/pre>\n<hr>\n<h2 id=\"6\">Conclusion<\/h2>\n<p>Now that we are ready with our demo site, let\u2019s see what else you can accomplish with Foundation 5. The elements we used in this demo are just a small set of the features of the Foundation framework. There are many other things you can make use of in your design, such as customizable Icon Bars, Breadcrumbs, Lightboxes, Range Sliders, Form Validation, and many others. <a href=\"https:\/\/get.foundation\/docs\/\" rel=\"nofollow\">The Docs<\/a> are pretty well-written and they help developers with many code examples.<\/p>\n<p>If you are familiar with Sass you have even more options as each section in the Docs explains how you can build your own mixins, and which Sass-variables you can use to customize your site. Before you start to design your webpage don\u2019t forget to check the <a href=\"https:\/\/get.foundation\/docs\/compatibility.html\" rel=\"nofollow\">compatibility<\/a> of the Foundation framework to make sure it works on all browsers you need to build for.<\/p>\n<p><a href=\"https:\/\/hongkiat.github.io\/foundation-5-website\/\" class=\"su-button su-button-style-flat\" style=\"color:#FFFFFF;background-color:#2D89EF;border-color:#246ec0;border-radius:0px\" target=\"__blank\" rel=\"noopener nofollow\"><span style=\"color:#FFFFFF;padding:7px 20px;font-size:16px;line-height:24px;border-color:#6cadf4;border-radius:0px;text-shadow:none\"><i class=\"sui sui-external-link\" style=\"font-size:16px;color:#fff\"><\/i>  View demo <\/span><\/a>\n<a href=\"https:\/\/github.com\/hongkiat\/foundation-5-website\/\" class=\"su-button su-button-style-flat\" style=\"color:#FFFFFF;background-color:#2D89EF;border-color:#246ec0;border-radius:0px\" target=\"__blank\" rel=\"noopener nofollow\"><span style=\"color:#FFFFFF;padding:7px 20px;font-size:16px;line-height:24px;border-color:#6cadf4;border-radius:0px;text-shadow:none\"><i class=\"sui sui-external-link\" style=\"font-size:16px;color:#fff\"><\/i>  Download codes <\/span><\/a> <\/p>","protected":false},"excerpt":{"rendered":"<p>Adopting a frontend framework can revolutionize your web design process in several ways. It empowers you to adhere to modern design standards such as a mobile-first philosophy, semantic markup, and responsive design. By taking advantage of numerous pre-made CSS and JavaScript components, you can drastically enhance the speed of your development work, allowing you more&hellip;<\/p>\n","protected":false},"author":146,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[352],"tags":[4528,1823,3601],"topic":[4520],"class_list":["entry-content","is-maxi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.8 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Accelerate Web Development with Foundation 5: A Comprehensive Guide - Hongkiat<\/title>\n<meta name=\"description\" content=\"Adopting a frontend framework can revolutionize your web design process in several ways. It empowers you to adhere to modern design standards such as a\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hongkiat.com\/blog\/building-website-foundation-5\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Accelerate Web Development with Foundation 5: A Comprehensive Guide\" \/>\n<meta property=\"og:description\" content=\"Adopting a frontend framework can revolutionize your web design process in several ways. It empowers you to adhere to modern design standards such as a\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/building-website-foundation-5\/\" \/>\n<meta property=\"og:site_name\" content=\"Hongkiat\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hongkiatcom\" \/>\n<meta property=\"article:published_time\" content=\"2015-09-07T13:01:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-21T16:06:25+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/assets.hongkiat.com\/uploads\/building-website-foundation-5\/download-foundation.jpg\" \/>\n<meta name=\"author\" content=\"Anna Monus\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:site\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Anna Monus\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"20 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/building-website-foundation-5\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/building-website-foundation-5\\\/\"},\"author\":{\"name\":\"Anna Monus\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/a601053a0ab457901e00cdc83bd5359e\"},\"headline\":\"Accelerate Web Development with Foundation 5: A Comprehensive Guide\",\"datePublished\":\"2015-09-07T13:01:05+00:00\",\"dateModified\":\"2024-03-21T16:06:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/building-website-foundation-5\\\/\"},\"wordCount\":3236,\"commentCount\":15,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/building-website-foundation-5\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/building-website-foundation-5\\\/download-foundation.jpg\",\"keywords\":[\"Foundation\",\"Frameworks\",\"zurb\"],\"articleSection\":[\"Web Design\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/building-website-foundation-5\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/building-website-foundation-5\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/building-website-foundation-5\\\/\",\"name\":\"Accelerate Web Development with Foundation 5: A Comprehensive Guide - Hongkiat\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/building-website-foundation-5\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/building-website-foundation-5\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/building-website-foundation-5\\\/download-foundation.jpg\",\"datePublished\":\"2015-09-07T13:01:05+00:00\",\"dateModified\":\"2024-03-21T16:06:25+00:00\",\"description\":\"Adopting a frontend framework can revolutionize your web design process in several ways. It empowers you to adhere to modern design standards such as a\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/building-website-foundation-5\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/building-website-foundation-5\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/building-website-foundation-5\\\/#primaryimage\",\"url\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/building-website-foundation-5\\\/download-foundation.jpg\",\"contentUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/building-website-foundation-5\\\/download-foundation.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/building-website-foundation-5\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Accelerate Web Development with Foundation 5: A Comprehensive Guide\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"name\":\"Hongkiat\",\"description\":\"Tech and Design Tips\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\",\"name\":\"Hongkiat.com\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"contentUrl\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"width\":1200,\"height\":799,\"caption\":\"Hongkiat.com\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/hongkiatcom\",\"https:\\\/\\\/x.com\\\/hongkiat\",\"https:\\\/\\\/www.pinterest.com\\\/hongkiat\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/a601053a0ab457901e00cdc83bd5359e\",\"name\":\"Anna Monus\",\"description\":\"Anna is Technical Editor and Writer for Hongkiat.com. She mainly covers front-end frameworks, web standards, accessibility, WordPress development, and UX design.\",\"sameAs\":[\"https:\\\/\\\/www.annalytic.com\\\/\"],\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/author\\\/anna_monus\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Accelerate Web Development with Foundation 5: A Comprehensive Guide - Hongkiat","description":"Adopting a frontend framework can revolutionize your web design process in several ways. It empowers you to adhere to modern design standards such as a","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.hongkiat.com\/blog\/building-website-foundation-5\/","og_locale":"en_US","og_type":"article","og_title":"Accelerate Web Development with Foundation 5: A Comprehensive Guide","og_description":"Adopting a frontend framework can revolutionize your web design process in several ways. It empowers you to adhere to modern design standards such as a","og_url":"https:\/\/www.hongkiat.com\/blog\/building-website-foundation-5\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2015-09-07T13:01:05+00:00","article_modified_time":"2024-03-21T16:06:25+00:00","og_image":[{"url":"https:\/\/assets.hongkiat.com\/uploads\/building-website-foundation-5\/download-foundation.jpg","type":"","width":"","height":""}],"author":"Anna Monus","twitter_card":"summary_large_image","twitter_creator":"@hongkiat","twitter_site":"@hongkiat","twitter_misc":{"Written by":"Anna Monus","Est. reading time":"20 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/building-website-foundation-5\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/building-website-foundation-5\/"},"author":{"name":"Anna Monus","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/a601053a0ab457901e00cdc83bd5359e"},"headline":"Accelerate Web Development with Foundation 5: A Comprehensive Guide","datePublished":"2015-09-07T13:01:05+00:00","dateModified":"2024-03-21T16:06:25+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/building-website-foundation-5\/"},"wordCount":3236,"commentCount":15,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/building-website-foundation-5\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/building-website-foundation-5\/download-foundation.jpg","keywords":["Foundation","Frameworks","zurb"],"articleSection":["Web Design"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hongkiat.com\/blog\/building-website-foundation-5\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/building-website-foundation-5\/","url":"https:\/\/www.hongkiat.com\/blog\/building-website-foundation-5\/","name":"Accelerate Web Development with Foundation 5: A Comprehensive Guide - Hongkiat","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/building-website-foundation-5\/#primaryimage"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/building-website-foundation-5\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/building-website-foundation-5\/download-foundation.jpg","datePublished":"2015-09-07T13:01:05+00:00","dateModified":"2024-03-21T16:06:25+00:00","description":"Adopting a frontend framework can revolutionize your web design process in several ways. It empowers you to adhere to modern design standards such as a","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/building-website-foundation-5\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/building-website-foundation-5\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/building-website-foundation-5\/#primaryimage","url":"https:\/\/assets.hongkiat.com\/uploads\/building-website-foundation-5\/download-foundation.jpg","contentUrl":"https:\/\/assets.hongkiat.com\/uploads\/building-website-foundation-5\/download-foundation.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/building-website-foundation-5\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Accelerate Web Development with Foundation 5: A Comprehensive Guide"}]},{"@type":"WebSite","@id":"https:\/\/www.hongkiat.com\/blog\/#website","url":"https:\/\/www.hongkiat.com\/blog\/","name":"Hongkiat","description":"Tech and Design Tips","publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hongkiat.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.hongkiat.com\/blog\/#organization","name":"Hongkiat.com","url":"https:\/\/www.hongkiat.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","contentUrl":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","width":1200,"height":799,"caption":"Hongkiat.com"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/hongkiatcom","https:\/\/x.com\/hongkiat","https:\/\/www.pinterest.com\/hongkiat\/"]},{"@type":"Person","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/a601053a0ab457901e00cdc83bd5359e","name":"Anna Monus","description":"Anna is Technical Editor and Writer for Hongkiat.com. She mainly covers front-end frameworks, web standards, accessibility, WordPress development, and UX design.","sameAs":["https:\/\/www.annalytic.com\/"],"url":"https:\/\/www.hongkiat.com\/blog\/author\/anna_monus\/"}]}},"jetpack_featured_media_url":"https:\/\/","jetpack_shortlink":"https:\/\/wp.me\/p4uxU-6oJ","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/24597","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/users\/146"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/comments?post=24597"}],"version-history":[{"count":4,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/24597\/revisions"}],"predecessor-version":[{"id":71543,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/24597\/revisions\/71543"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=24597"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=24597"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=24597"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=24597"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}