CSS Layouts | Enhancing Responsive Layouts With JQuery

Enhancing Responsive Layouts With JQuery

You can do a lot with just HTML and CSS (particularly HTML5 and CSS3), and we can design beautiful and beautifully responsive Web sites using only those tools.

However, JavaScript—particularly the popular JavaScript library jQuery—can enhance your site in a myriad of ways, helping you create content sliders, incorporate interactive photo galleries, animate elements, and more.

We touched briefly on jQuery Mobile in the last lecture. In this lecture, we're going to explore a handful of jQuery In this lecture, we'll explore a variety plugins that sharpen and expand your of jQuery plugins that can help you add options for responsive designs. Follow elegance and interactivity to your along at the example site here, and be responsive layouts. sure to check out the source code.

In this lecture, you can Implementing JQuery Plugins expect to:

Learn how to implement jQuery plugins into your site. Implementing jQuery plugins into your site is fairly easy, and as you Learn how to enhance move through this lecture, you'll notice a pattern in implementing a image slideshows with a responsive . jQuery plugin. Once you link to the the main jQuery library in your HTML Learn how to document, using a plugin usually involves the following steps: incorporate a modal dialog. Learn how to customize . 1. Download the plugin files and upload them to your Learn how to make a mobile friendly server. Minimally, the files include a JavaScript file, but navigation . they can also include CSS files.

2. Link to the script (and the CSS, if applicable) in the head of your HTML document.

3. Include a small script in your head as well, defining any plugin options as well as the plugin "trigger." This trigger, usually a class or id name, serves as a hook for the script, so the plugin knows which elements within your document to act on.

4. Place these triggers (as class or id names) in the relevant HTML elements in the body of the document.

5. For some plugins, you have to add some additional CSS rules to your main CSS file.

HTML Layout Preparation

Before we dive into the plugins themselves, let's begin with our HTML layout. Note here that we're using an HTML5 based responsive framework by Harry Roberts called inuit.css, which makes it easier for us to get up and running with a responsive design:

Don't try to reinvent the wheel, but do Nine Muse Photography

make sure you have the latest wheel technology: use an HTML5 based framework to give yourself a design preparation! Note, first of all, our header. We've included a link to the latest version of jQuery (as of this writing, 1.7.1). All of our plugins depend on being included as part of the Web page. Now let's look at the code for our layout:

Nine Muse Photography


We capture your most precious moments, beautifully.


[...]

[...]

[...]