Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Bootstrap Site Blueprints
Bootstrap Site Blueprints

Bootstrap Site Blueprints: Without Bootstrap your web designs may not be reaching their full potential. This book will change that through a series of hands-on projects covering everything from custom icon fonts to JavaScript plugins.

eBook
€8.99 €28.99
Paperback
€37.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Table of content icon View table of contents Preview book icon Preview Book

Bootstrap Site Blueprints

Chapter 2. Bootstrappin' Your Portfolio

Let's imagine we're ready for a fresh design of our online portfolio. As always, time is scarce. We need to be efficient, but the portfolio has to look great. And of course, it has to be responsive. It should work across devices of various form factors, since this is a key selling point for our prospective clients. This project will enable us to leverage a number of Bootstrap's built-in features, even as we customize Bootstrap to suit our needs.

What we'll build


We've thrown together a couple of home page mock-ups. Though we have in mind what we want for large screens, we've begun with a handheld screen size to force ourselves to focus on the essentials.

You'll notice the following features:

  • A collapsed responsive navbar with logo

  • A sliding carousel with four images of featured portfolio items

  • A single-column layout with three blocks of content, each with a heading, short paragraph, and a nice big button with an invitation to read further

  • A footer with social media links

Here is the design mockup as shown in the following screenshot:

Altogether, this should provide a good introduction to our work. The carousel is tall enough to give a good amount of visual space to our portfolio images. It is not difficult to navigate quickly to the content below, where a user can efficiently scan key options for taking a next step inside. By presenting key links as nice big buttons, we will establish helpful visual hierarchy for the key action items,...

Surveying the exercise files


Let's survey the beginning files for this exercise, which you will find in the folder 02_Code_BEGIN. You'll see files similar to the template we set up in Chapter 1, Getting Started with Bootstrap.

There are a few new additions:

  • The less folder has a slightly modified organization scheme. We'll return to this later in the project. First, let's attend to the content elements.

  • The img folder now contains five images:

    • One logo image, named logo.png

    • Four portfolio item images

  • The index.html file has the following new touches:

    • Navbar items have been updated to reflect our new site architecture

    • We also have the essential markup in place for the images, content blocks, a logo in the footer, and social links

Other than the navbar, which we set up in Chapter 1, Getting Started with Bootstrap, no Bootstrap classes have been added to style the carousel, columns, or icons yet. You can view the results in your browser.

You'll see the navbar, followed by the portfolio images:

The blocks...

Marking up the carousel


Let's get started with our carousel, which will rotate between four featured images from our portfolio.

Bootstrap's carousel markup structure can be found in its documentation pages at the following URL:

http://getbootstrap.com/javascript/#carousel

Following the pattern used in the example, we'll begin with this structure to set up the fundamental element. This will contain all parts of the carousel, followed by the progress indicators:

<div id="homepage-feature" class="carousel slide">
  <ol class="carousel-indicators">
    <li data-target="#homepage-feature" data-slide-to="0" class="active"></li>
    <li data-target="#homepage-feature" data-slide-to="1"></li>
    <li data-target="#homepage-feature" data-slide-to="2"></li>
    <li data-target="#homepage-feature" data-slide-to="3"></li>
  </ol>

Note that I've used a div tag with an ID (id="homepage-feature") to establish the fundamental context of carousel...

Creating responsive columns


We have three blocks of text, each with a heading, a short paragraph, and a link. In screen sizes of approximately tablet width or more, we would like this content to be laid out in three columns. In narrower screen widths, the content will organize itself in one full-width column.

Take a moment to visit and read the documentation for Bootstrap's mobile-first responsive grid. You can find it at http://getbootstrap.com/css/#grid.

In short, the grid is based on a twelve-column system. The basic class structure allows us to use a class of col-12 for full-width, col-6 for half-width, col-4 for one-third width, and so on.

With Bootstrap 3, thanks to the creative use of media queries, Bootstrap's grid can be very adept. Recall that we want our welcome message to have a single-column layout up to tablet-sized screens, and then adapt a three-column layout at approximately 768px. Conveniently, Bootstrap has a built-in breakpoint at 768px, which is the default value of its...

Turning links into buttons


Turning our key content links into visually effective buttons is straightforward. The key classes we'll employ are as follows:

  • The btn class will style a link as a button

  • The btn-primary class will assign a button the color of our primary brand color

  • The pull-right class will float the link to the right, moving it into wider space to make it a more appealing target

Add these classes to the link at the end of each of our three content blocks:

<p><a class="btn btn-primary pull-right" href="#">See our portfolio</a></p>

Save and refresh. You should see the following result:

We've made great progress. Our key elements are taking shape.

With our fundamental markup structure in place, we can start working on the finer details. Getting there will require some custom CSS. We're going to approach this by leveraging the power of Bootstrap's LESS files. If you're new to LESS, no worries! I'll walk you through it step by step.

Understanding the power of LESS


In the following sections, we will be organizing, editing, customizing, and creating LESS files in order to generate the desired CSS for our designs.

Note

If you are unfamiliar with LESS and would like to learn more about it, I would recommend the following resources:

In a nutshell, we may say that generating CSS using the LESS preprocessor is an exciting and freeing experience. The key benefits of working with LESS are discussed in the following sections.

Nested rules

Nested rules greatly enhance the efficiency of composing styles. For example, writing selectors in CSS can be highly repetitive:

.navbar-nav { ... }
.navbar-nav > li { ... }
.navbar-nav > li > a { ... }
.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus { ... }

This same set of selectors and their styles...

Customizing Bootstrap's LESS according to our needs


As we work with Bootstrap's LESS files, we'll exert considerable control over them, including the following:

  • Organizing our less folder to give us flexibility and freedom to accomplish what we need, while making future maintenance easier

  • Customizing several LESS files provided by Bootstrap

  • Creating a few custom LESS files of our own

  • Incorporating a larger set of font-based icons in our site assets, doubling the number of available icons, and providing the icons that we need for our social media links

In other words, we'll be doing more than merely learning and applying Bootstrap's conventions. We'll be bending them to our will.

In this chapter's exercise files, open the less directory. Inside, you should see the following structure:

To prepare for what's ahead, I've given you a head start by adding a new layer of organization. All of Bootstrap's less files are now organized under the bootstrap subdirectory.

The file __main.less is a modified copy...

Adding the logo image


Find the logo.png file in the img folder. You may notice that its dimensions are large, 900px wide. In our final design, it will be only 120px wide. Because the pixels will be compressed into a smaller space, this is a relatively easy way to ensure that the image will look good in all devices, including retina displays. Meanwhile, the file size of the image, which has already been optimized for the Web, is only 19 KB.

So, let's put it in place and constrain its width.

  1. Open index.html in your editor.

  2. Search for this line within the navbar markup:

    <a class="navbar-brand" href="index.html">Bootstrappin'</a>
  3. Replace Bootstrappin' with this image tag, including its alt and width attributes.

    <img src="img/logo.png" alt="Bootstrappin'" width="120">

    Tip

    Be sure to include the width attribute, setting its width to 120px. Otherwise, it will appear very large on the page.

  4. Save index.html and refresh your browser. You should see the logo in place.

You may notice that the...

Adjusting nav item padding


Now, let's adjust our nav items so that the text of our links shares the same baseline as our logo.

In _navbar.less, find the selector .navbar-nav. It is the parent ul of our navbar items. Within this set of rules, you'll find nested media queries. (See the documentation on nested media queries at http://lesscss.org.) The relevant lines are given as follows:

// Uncollapse the nav
  @media (min-width: @grid-float-breakpoint) {
    float: left;
    margin: 0;
    > li {
      float: left;
      > a {
        padding-top: ((@navbar-height - @line-height-computed) / 2);
        padding-bottom: ((@navbar-height - @line-height-computed) / 2);
      }
    }
  }

The variable @grid-float-breakpoint specifies the point at which the navbar expands to its full width or collapses to create the mobile-app-style responsive navigation. (You'll find this variable defined in _variables.less.)

At present, the padding-top and padding-bottom values are calculated to keep the text...

Adding icons


It's time to add icons to our navigation. We'll begin by employing the Glyphicons that come with Bootstrap. Then, we'll shift to the larger library of icons offered by Font Awesome.

Note

Take a moment to review the relevant Bootstrap documentation at: http://getbootstrap.com/components/#glyphicons.

You'll see the set of icons available and the markup convention for using these in your HTML using span tags and glyphicon classes. We'll start by adding a home icon to our Home nav item:

  1. Add the Glyphicon Home icon to the Home nav item by placing a span tag with appropriate classes within the nav item link and before the text:

    <li class="active">
      <a href="index.html">
        <span class="glyphicon glyphicon-home"></span> Home
      </a>
    </li>

    Tip

    I've added a space after the span tag to provide a bit of space between the icon and the text Home.

  2. Save this and refresh your browser. If all goes well, you should see your icon appear!

  3. If your icon does not appear...

Adding Font Awesome icons


Font Awesome is a font icon set that offers 361 icons at the time of writing this book—twice as many as available in the current Bootstrap version of Glyphicons. Font Awesome icons are free, open source, and built to play nice with Bootstrap. You can see the Font Awesome home page at:

http://fortawesome.github.io/Font-Awesome/

Let's fold Font Awesome into our workflow.

  1. Navigate to the Font Awesome home page, at http://fortawesome.github.io/Font-Awesome/, and click on the large Download button.

  2. Extract the downloaded archive and look inside. You'll find the following folder structure:

  3. Inside the font folder, you'll find the Font Awesome icon font files.

  4. Copy all of these files and paste them into your project's fonts folder, alongside the Glyphicons font files.

  5. Now, we want to copy the Font Awesome less files to our project's less directory. Create a new subdirectory named font-awesome, and copy the Font Awesome less files into it.

  6. Next, we will import the font-awesome.less...

Adjusting the navbar icon color


You might note that the icons appear visually heavier than their adjacent text. The color is the same, but the icons carry greater visual weight. Let's adjust the icons to a lighter and less overpowering shade.

  1. Open _navbar.less in your editor.

  2. Search to find the selector .navbar-default. We have used this class in our navbar markup to apply default styles. You should find it under the commented section for // Alternate navbars.

  3. Within this nested set of rules, find the selector .navbar-nav and the > li > selector nested beneath it. This is where we want to adjust our icon colors.

  4. Under the statement defining nav item link colors, we'll nest a rule to make our icons a lighter shade, using our variable @gray-light, as follows:

    .navbar-nav {
      > li > a {
        color: @navbar-default-link-color;
    
        .icon { // added rule set
          color: @gray-light;
        }

    Tip

    The generic class icon proves to be a handy way to select all of our icons.

    Note

    I've begun adding...

Adjusting the responsive navbar breakpoint


Our navbar, with the logo image, larger nav items, and icons, has grown in width. And a problem for our responsive design has arisen. Try resizing your browser window from wide to narrow (approx 480px) and back again, and chances are you'll see the navbar bump down under the logo at some point in the mid-range.

What's happened? The navbar has grown too wide for the container when our viewport is between 768px to 991px. This falls between the Bootstrap variables @screen-sm-min and @screen-md-min.

The @grid-float-breakpoint sets the point at which the navbar collapses. You'll find this variable in _variables.less, under the // Grid system section.

// Point at which the navbar stops collapsing
@grid-float-breakpoint:     @screen-sm-min;

We need to adjust this breakpoint so that the navbar stays collapsed until the next breakpoint: @screen-md-min. Update the variable accordingly:

@grid-float-breakpoint:     @screen-md-min; // edited

Save, compile, and refresh...

Styling the carousel


We're going to take Bootstrap's default carousel styles and apply some significant customization. Let's create a copy of Bootstrap's carousel.less file and make it our own.

  1. Copy bootstrap/carousel.less and save it in the less directory as _carousel.less.

    .

  2. Update the relevant import line in __main.less to import our custom file in place of Bootstrap's:

    @import "_carousel.less";
  3. Customize the opening comment in _feature-carousel.less:

    //
    // Customized Carousel
    // --------------------------------------------------

Now to begin customizing!

Setting Font Awesome icons for the controls

If you unhooked Glyphicons as I did in the preceding section, you'll find that the next and previous carousel controls have disappeared. This is because they relied on Glyphicons. We can fix this using Font Awesome icons instead.

  1. First, update the icons markup in index.html. Look for the links with the classes left or right and carousel-control:

    <a class="left carousel-control" ...
  2. Update the span tags...

Tweaking the columns and their content


Let's fine-tune the blocks of content under the three headings Welcome!, Recent Updates, and Our Team.

First, let's add the arrow-circle icon to the button in each of these three blocks. Recall that we're using Font Awesome for our icon selection.

  1. Visit the Font Awesome documentation at http://fortawesome.github.io/Font-Awesome/icons/.

  2. You'll find the icon that we're after.

  3. In index.html, add a span tag with the appropriate classes inside each link. Here is the first one, which I've spaced out by adding an extra carriage return between elements.

    <p>
      <a class="btn btn-primary pull-right" href="#">
        See our portfolio <span class="icon fa fa-arrow-circle-right"></span>
      </a>
    </p>
  4. Repeat for each link.

You should now have the desired icon in each of the three buttons.

While we're at it, let's add a bit of vertical padding between the carousel and this section of text. Right now, it's pretty tight.

The question that comes...

Styling the footer


The biggest feature of the footer is our social icons. Font Awesome to the rescue!

Consulting the Font Awesome documentation, we find a slew of available icons under the category of Brand Icons. Here is the direct link:

http://fortawesome.github.io/Font-Awesome/icons/#brand

Now, we only need to replace the text for each social link in our footer with span elements, using the appropriate classes.

<ul class="social">
  <li><a href="#" title="Twitter Profile"><span class="icon fa fa-twitter"></span></a></li>
  <li><a href="#" title="Facebook Page"><span class="icon fa fa-facebook"></span></a></li>
  <li><a href="#" title="LinkedIn Profile"><span class="icon fa fa-linkedin"></span></a></li>
  <li><a href="#" title="Google+ Profile"><span class="icon fa fa-google-plus"></span></a></li>
  <li><a href="#" title="GitHub Profile...

Recommended next steps


Let me strongly recommend at least one additional next step you'll need to take before taking a project like this to production. It's imperative that you take time to optimize your images, CSS, and JavaScript. These steps are not difficult.

  • Compressing images takes just a bit of time, and it addresses the single largest cause for large page footprints. I've already used the save to web process option of Photoshop, but chances are you can squeeze a few more bytes out.

  • In addition, we badly need to remove unneeded Bootstrap LESS files from the import sequence in __main.less, and then compress the resulting main.css file.

  • Finally, we need to slim down our plugins.js file by replacing Bootstrap's all-inclusive bootstrap.min.js file with compressed versions of only the three plugins that we're actually using: carousel.js, collapse.js, and transitions.js. We then compress the final plugins.js file.

Combined, these steps can cut the footprint of this website by roughly half....

Summary


Let's take stock of what we've accomplished in this chapter.

  • We've begun with a rock-solid markup structure provided by the HTML5 Boilerplate

  • We've leveraged Bootstrap's responsive navbar, carousel, and grid system

  • We've customized several of Bootstrap's LESS files

  • We've created our own LESS files and folded them seamlessly into the project

  • We've doubled our available icons by folding Font Awesome into our workflow

  • We've improved future maintenance of the site by implementing a thoughtful file organization scheme and leaving a trail of helpful comments—all without creating code bloat

With this experience under your belt, you're equipped to bend Bootstrap to your will—using its power to speed website development, and then customizing the design to your heart's content. In future chapters, we'll expand your experience further. First, however, let's take this design and turn it into a WordPress theme.

Left arrow icon Right arrow icon
Download code icon Download Code
Estimated delivery fee Deliver to France

Premium delivery 7 - 10 business days

€10.95
(Includes tracking information)

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Feb 21, 2014
Length: 304 pages
Edition :
Language : English
ISBN-13 : 9781782164524
Languages :
Tools :

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Estimated delivery fee Deliver to France

Premium delivery 7 - 10 business days

€10.95
(Includes tracking information)

Product Details

Publication date : Feb 21, 2014
Length: 304 pages
Edition :
Language : English
ISBN-13 : 9781782164524
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 74.98
Bootstrap Site Blueprints
€37.99
Learning Bootstrap
€36.99
Total 74.98 Stars icon
Banner background image

Table of Contents

6 Chapters
Getting Started with Bootstrap Chevron down icon Chevron up icon
Bootstrappin' Your Portfolio Chevron down icon Chevron up icon
Bootstrappin' a WordPress Theme Chevron down icon Chevron up icon
Bootstrappin' Business Chevron down icon Chevron up icon
Bootstrappin' E-commerce Chevron down icon Chevron up icon
Bootstrappin' a One-page Marketing Website Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.2
(10 Ratings)
5 star 50%
4 star 30%
3 star 10%
2 star 10%
1 star 0%
Filter icon Filter
Top Reviews

Filter reviews by




Chris Malan Apr 18, 2016
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This book would be best suited for someone who knows a bit about Bootstrap. What it does is take one from a blank page to a fully fledged site using Less, instead of css. Of course, Less is ulitmately turned into css. This is just what I wanted. One thing I can add, which I did not find in the book, is download Crunch to turn Less into css. It works really well.
Amazon Verified review Amazon
John Williams Feb 24, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
As a very experienced developer coming from mainly a backend career, I am increasingly being dragged into frontend development, especially with the onset of AngularJS. This book was exactly what I was looking for, not pitched too low and not pitched too high. Covers a few good site examples and plenty of direction for additional resources. A really good book to get those with some knowledge of CSS going in the right direction with Bootstrap and responsive design. I personally prefer electronic books these days, I tend to have my IDE open in half the screen and the book open in the other half, this makes it much easier to keep track of what is going on in the book and transfer it to the IDE, plus it saves getting a programmers neck strain! The book works well in electronic format.
Amazon Verified review Amazon
SuJo May 05, 2014
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Bootstrap Site BlueprintsI've been a huge fan of Bootstrap for awhile now, there are a few issues that I had while learning but it was pretty painless to get going and figure new things out as I went along. The documentation is well received via the website for bootstrap but I felt it lacked more robust examples, sure the simple things are there. The robust examples in this book are well written and easy to follow along, I enjoyed the WordPress Theme section, it's widely used and something that every web developer needs to work with at some point in time. This book not only guides you along your path of learning, the examples incorporate various bootstrap elements, and using them when they are needed. This book isn't throwing out an html page with an example of a navbar but a full fledge example of a navbar with full content.Excellent Book and well worth the cost!Publisher Site: [...]
Amazon Verified review Amazon
Ian Doremus Aug 14, 2014
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I just finished reading Bootstrap Site Blueprints, Design mobile-first responsive websites with Bootstrap 3 by David Cochran. I would recommend this book to anyone who is serious about learning to use the latest Bootstrap framework.The book is written for the beginner to intermediate front-end developer who is comfortable working with HTML/CSS but wants to take things to the next level. The book would also make a good reference for a more experienced developer.What really impressed me was how Cochran introduces plugins, frameworks, and workflows outside the scope of Bootstrap in order to make life easier for the developer. For example, Bootstrap 3 now comes bundled with LESS files (Leaner CSS). The author spends a chapter bringing the reader up to speed on the principles of LESS and how to best implement it into production.The reader is also introduced to HTML5 Boilerplate, Font Awesome, Respond.js, Masonry, ScrollSpy, and the Roots starter theme for Wordpress. These are each introduced to save the developer time by not having to reinvent something from scratch. Rather then complicate the project Cochran uses these plugins to simplify.The book chapters walk one through building a Bootstrap portfolio theme, Creating a Bootstrap business page, a Bootstrap E-commerce page, a single page Bootstrap site and a bonus chapter on converting a Bootstrap theme into a Wordpress template.The appendix covers optimizing a site for best download speeds, best practices for responsive images and adding touch control to a custom photo carousel. The sample code is very well organized, each chapter has a start and a finish file to make sure the reader understands the code.In conclusion, I have read many books on coding and building websites. Some books look like they will be good but don’t live up to the promise either because of bad code examples that don’t work or grammar that is difficult to follow. David Cochran’s background in academics is evident in reading this book. It is truly fun to read. I felt like I was reading a novel and couldn’t wait to find out what is at the end of the chapter. All his example code works as expected and the table of contents and index are organized very well. Yes I would recommend this book to anyone who has even the slightest interest in learning to use Bootstrap.
Amazon Verified review Amazon
Adam Horvath May 03, 2014
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This book is definitely worth reading. I was afraid of buying it without any review, but I got lucky... Today I've completed it.I have years of experience in web development on backend and database side but 've never used bootstrap or similar framework and responsive mobile-first development is a new world for me.Who is this book for?It's a well-constructed, well-written book. The authors guide you through the topic with suitable examples: one page website, e-commerce product page, business site.The chapters introduce new materials in a balanced way, so after finishing the book I felt I had a practical toolset to build some stuff for profit immediately.Summary: The book easy to follow. This step-by-step format is simple enough for begginers with some basic prior html and css experience.Who is this book not for?If you have built some site with bootstrap and have some week of full time bootstrap experience, probably you will find many well-known stuff. This book is rather for begginers.If you wanna build some professional development workflow with grunt and other tools this book is not for you. And you can't find many advanced topics about extending bootstrap. But after reading the table of content it should be clear.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is the delivery time and cost of print book? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela
What is custom duty/charge? Chevron down icon Chevron up icon

Customs duty are charges levied on goods when they cross international borders. It is a tax that is imposed on imported goods. These duties are charged by special authorities and bodies created by local governments and are meant to protect local industries, economies, and businesses.

Do I have to pay customs charges for the print book order? Chevron down icon Chevron up icon

The orders shipped to the countries that are listed under EU27 will not bear custom charges. They are paid by Packt as part of the order.

List of EU27 countries: www.gov.uk/eu-eea:

A custom duty or localized taxes may be applicable on the shipment and would be charged by the recipient country outside of the EU27 which should be paid by the customer and these duties are not included in the shipping charges been charged on the order.

How do I know my custom duty charges? Chevron down icon Chevron up icon

The amount of duty payable varies greatly depending on the imported goods, the country of origin and several other factors like the total invoice amount or dimensions like weight, and other such criteria applicable in your country.

For example:

  • If you live in Mexico, and the declared value of your ordered items is over $ 50, for you to receive a package, you will have to pay additional import tax of 19% which will be $ 9.50 to the courier service.
  • Whereas if you live in Turkey, and the declared value of your ordered items is over € 22, for you to receive a package, you will have to pay additional import tax of 18% which will be € 3.96 to the courier service.
How can I cancel my order? Chevron down icon Chevron up icon

Cancellation Policy for Published Printed Books:

You can cancel any order within 1 hour of placing the order. Simply contact customercare@packt.com with your order details or payment transaction id. If your order has already started the shipment process, we will do our best to stop it. However, if it is already on the way to you then when you receive it, you can contact us at customercare@packt.com using the returns and refund process.

Please understand that Packt Publishing cannot provide refunds or cancel any order except for the cases described in our Return Policy (i.e. Packt Publishing agrees to replace your printed book because it arrives damaged or material defect in book), Packt Publishing will not accept returns.

What is your returns and refunds policy? Chevron down icon Chevron up icon

Return Policy:

We want you to be happy with your purchase from Packtpub.com. We will not hassle you with returning print books to us. If the print book you receive from us is incorrect, damaged, doesn't work or is unacceptably late, please contact Customer Relations Team on customercare@packt.com with the order number and issue details as explained below:

  1. If you ordered (eBook, Video or Print Book) incorrectly or accidentally, please contact Customer Relations Team on customercare@packt.com within one hour of placing the order and we will replace/refund you the item cost.
  2. Sadly, if your eBook or Video file is faulty or a fault occurs during the eBook or Video being made available to you, i.e. during download then you should contact Customer Relations Team within 14 days of purchase on customercare@packt.com who will be able to resolve this issue for you.
  3. You will have a choice of replacement or refund of the problem items.(damaged, defective or incorrect)
  4. Once Customer Care Team confirms that you will be refunded, you should receive the refund within 10 to 12 working days.
  5. If you are only requesting a refund of one book from a multiple order, then we will refund you the appropriate single item.
  6. Where the items were shipped under a free shipping offer, there will be no shipping costs to refund.

On the off chance your printed book arrives damaged, with book material defect, contact our Customer Relation Team on customercare@packt.com within 14 days of receipt of the book with appropriate evidence of damage and we will work with you to secure a replacement copy, if necessary. Please note that each printed book you order from us is individually made by Packt's professional book-printing partner which is on a print-on-demand basis.

What tax is charged? Chevron down icon Chevron up icon

Currently, no tax is charged on the purchase of any print book (subject to change based on the laws and regulations). A localized VAT fee is charged only to our European and UK customers on eBooks, Video and subscriptions that they buy. GST is charged to Indian customers for eBooks and video purchases.

What payment methods can I use? Chevron down icon Chevron up icon

You can pay with the following card types:

  1. Visa Debit
  2. Visa Credit
  3. MasterCard
  4. PayPal
What is the delivery time and cost of print books? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela