Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
WordPress Mobile Web Development: Beginner's Guide

You're reading from   WordPress Mobile Web Development: Beginner's Guide Make your WordPress website mobile-friendly and get to grips with the two hottest trends in web design—Mobile and WordPress with this book and ebook.

Arrow left icon
Product type Paperback
Published in Aug 2012
Publisher Packt
ISBN-13 9781849515726
Length 332 pages
Edition 1st Edition
Languages
Concepts
Arrow right icon
Author (1):
Arrow left icon
RACHEL MCCOLLIN RACHEL MCCOLLIN
Author Profile Icon RACHEL MCCOLLIN
RACHEL MCCOLLIN
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

WordPress Mobile Web Development Beginner's Guide
Credits
About the Author
About the Reviewers
Acknowledgement
1. www.PacktPub.com
2. Preface
1. Using Plugins to Make Your Site Mobile-friendly 2. Using Responsive Themes FREE CHAPTER 3. Setting up Media Queries 4. Adjusting the Layout 5. Working with Text and Navigation 6. Optimizing Images and Video 7. Sending Different Content to Different Devices 8. Creating a Web App Interface 9. Adding Web App Functionality 10. Testing and Updating your Mobile Site Pop quiz—Answers

Time for action—changing text settings


Before we start making changes to the text size in our media queries, first we're going to change the unit we use for text, from pixels to ems. This makes it easier for us to edit text sizes later on and is also a lot better for accessibility. See the Why use ems section ahead for more on why it's a good practice to use ems for text. To change text settings, perform the following steps:

  1. 1. We will open up our stylesheet and find the text sizes that are already set for the desktop site. In the Carborelli's stylesheet all of the text styling is in the same place:

    /* Main global 'theme', fonts and typographic styles */
    body {
    font-size: 14px;
    line-height: 1.4em;
    }
    /* Headings */
    h1 {
    font-size: 22px;
    }
    h2 {
    font-size: 20px;
    }
    h3 {
    font-size: 18px;
    }
    h4 {
    font-size: 16px;
    font-style: italic;
    }
    h5{
    font-size: 14px;
    font-style: bold italic;
    }
    h6 {
    font-size: 14px;
    font-style: italic;
    }
    
  2. 2. It's important to set the <body> font size in pixels for consistency...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image