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 Media in HTML5

You're reading from   Responsive Media in HTML5 Learn effective administration of responsive media within your website or CMS system using practical techniques

Arrow left icon
Product type Paperback
Published in Dec 2014
Publisher
ISBN-13 9781849696968
Length 128 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Alex Libby Alex Libby
Author Profile Icon Alex Libby
Alex Libby
Arrow right icon
View More author details
Toc

Table of Contents (7) Chapters Close

Preface 1. Working with Responsive Images FREE CHAPTER 2. Adding Responsive Video Content 3. Mixing Content 4. Testing Responsive Media 5. Using Frameworks Index

Mixing video and image content on the same page


Throughout this book, we've seen some of the tips and tricks we need to use to make our media content responsive and worked through some examples of the styles we need to implement to make this happen.

However, it is unlikely that every responsive site will have either images or videos; it is more likely that there will be a mix of both on at least some sites! This can present its own issues, so to see what can happen, let's run through a simple demo.

From the code download, extract the code folder for this chapter and save it to your project folder; this contains a simple demo that shows the issues we face with mixing videos and images together in a responsive design. If we run the mix-responsive.html demo as it stands, it would appear to look okay from the start until we scroll down and view the video. The layout is not ideal, but there are a few changes we can make:

  • The banner image at the top of the browser window is too large. While this...

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 €18.99/month. Cancel anytime