Book Image

Responsive Web Design by Example

By : Frahaan Hussain
Book Image

Responsive Web Design by Example

By: Frahaan Hussain

Overview of this book

Desktop-only websites just aren't good enough anymore. As you enter a future of increasingly diverse browsing methods, you need to know how to build websites that are presentable and will work perfectly with the huge volume of different device sizes and resolutions that are now commercially available. Responsive web design is an answer to the problem of modern web development. By following the detailed step-by-step instructions, previews, and examples mentioned in this book, you will learn how to build engaging responsive websites and upgrade your skills as a web designer. With coverage of Responsive Grid System and Bootstrap, you will learn about the most powerful frameworks in responsive web design. In this book, you will learn how to create a crisp blog page, a beautiful portfolio site, a cool social networking page, and a fun photo gallery. Through each of these projects, you'll learn how to build various elements of a modern responsive website, and also find out which framework works best for your project specifications. By the end of the book, you will have gained practical skills you need to build real-world websites that are professional, creative and truly responsive.
Table of Contents (15 chapters)

Implementing the sidebar

We are now at the final stage of this chapter, where we implement a sidebar with call links to other great articles. As you may remember from earlier in this chapter , we added a div, which spanned only nine columns on larger screens, and the remaining three are for the sidebar. To access them, add the following code below the div that contains all the main content:

The code we added simply creates a div to contain the sidebar and adds a section header along with a horizontal rule. This will produce the following result:

This is a good start, but the horizontal line is barely visible; I wouldn't blame you if you can't see it—it is, after all, that faint. We will override the border properties to change the size and color. First, add a class of postSidebarLine to the horizontal rule tag:

Now, add the following code to the index.css file...