18.11.2015 Views

Beginning Drupal 8

Todd Tomlinson - Beginning Drupal 8 (The Expert's Voice in Drupal) - 2015

Todd Tomlinson - Beginning Drupal 8 (The Expert's Voice in Drupal) - 2015

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 18 ■ Creating a Responsive Site<br />

Figure 18-5. Using Chrome’s Inspect Element tool<br />

Responsive theming becomes a relatively easy task with the combination of media queries, a browser’s<br />

responsive design tool like Chrome’s Responsive Web Design Tester, and the ability to right-click an item and<br />

identify which CSS element you wish to change. The only thing left is adding that CSS selector within the<br />

brackets of your media query and changing the CSS attribute, such as width, to an appropriate value. The<br />

browser does all the rest.<br />

There is a learning curve to responsive design and getting things to appear appropriately across device<br />

widths. The journey starts with the first step, and you now have enough knowledge to step out with gusto!<br />

Summary<br />

In today’s mobile world, building a website that is not responsive to mobile devices ensures that a large<br />

percentage of your site visitors will be frustrated with the user experience. Take the time to add a few media<br />

queries and CSS overrides to your CSS files, and your site visitors will be happier. While it’s impossible to<br />

please all the people all the time, it’s a good idea to at least attempt to address the devices that your site<br />

visitors will be using. And as you’ve seen in this chapter, it really isn’t that hard and can actually be fun!<br />

200

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!