- WordPress Mobile Web Development:Beginner's Guide
- Rachel McCollin
- 208字
- 2021-08-13 18:06:19
Chapter 3. Setting up Media Queries
We've spent some time looking at some of the off-the-shelf methods of making your WordPress site mobile, in the form of plugins and responsive themes. But what do you do if you have a site with a pre-existing theme and you want mobile visitors to see a site which is consistent with that theme? Or if you're frustrated by the fact that the plugins don't display all the content of your site? Or if you just aren't that keen on the available responsive themes?
The answer is to write responsiveness into your theme.
In this chapter we will learn the basic building blocks you need in place for a responsive theme, including the following:
- A fluid layout
- Media queries
- Instructions to mobile devices to display your site at the correct scale
We will also examine the different devices you can target when designing a responsive theme, and identify some of the considerations for each of them.
Note
Downloading the example code
You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.
- Learn Helm
- Windows Server 2012 Hyper-V Cookbook
- Ubuntu Linux操作系統(tǒng)
- Moodle 3.x Teaching Techniques(Third Edition)
- Linux運維最佳實踐
- Linux內(nèi)核觀測技術BPF
- 細說Linux基礎知識
- 操作系統(tǒng)分析
- Fedora 12 Linux應用基礎
- Social Data Visualization with HTML5 and JavaScript
- 寫給架構師的Linux實踐:設計并實現(xiàn)基于Linux的IT解決方案
- μC/OS-III內(nèi)核實現(xiàn)與應用開發(fā)實戰(zhàn)指南:基于STM32
- Office 365 User Guide
- Linux集群之美
- CSS揭秘