Search icon CANCEL
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
Responsive Web Design by Example : Beginner's Guide - Second Edition

You're reading from   Responsive Web Design by Example : Beginner's Guide - Second Edition Build powerful and engaging responsive websites with ease

Arrow left icon
Product type Paperback
Published in Nov 2014
Publisher
ISBN-13 9781783553259
Length 258 pages
Edition 2nd Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Thoriq Firdaus Thoriq Firdaus
Author Profile Icon Thoriq Firdaus
Thoriq Firdaus
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. Responsive Web Design FREE CHAPTER 2. Web Development Tools 3. Constructing a Simple Responsive Blog with Responsive.gs 4. Enhancing the Blog Appearance 5. Developing a Portfolio Website with Bootstrap 6. Polishing the Responsive Portfolio Website with LESS 7. A Responsive Website for Business with Foundation 8. Extending Foundation A. Pop Quiz Answers Index

Time for action – enhancing the header and the navigation appearance with CSS


The steps are as follows:

  1. Open main.css.

  2. Add some whitespace surrounding the header with padding, and also set the header color to #333, as follows:

    .blog-header {
    padding: 30px 15px;
    background-color: #333;
    }
  3. To make the logo look prominent, we will set it with Varela Round font, which is the same font family we used for the headings. We also make it bigger and transform the letters all to uppercase, as follows:

     .blog-name {
      font-family: "Varela Round", Arial, sans-serif;
      font-weight: 400;
      font-size: 42px;
      text-align: center;
      text-transform: uppercase;
    }
  4. The logo link color currently is #2a84bf, which is the common color we set for links <a>. This color does not suit well with the background color. Let's change the color to white instead, as follows:

    .blog-name a {
        color: #fff;
    }
  5. Set the search input styles, as follows:

    .search-form input {
      height: 36px;
      background-color: #ccc;
      color: #555;
    ...
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 £16.99/month. Cancel anytime