-
Book Overview & Buying
-
Table Of Contents
HTML5 Multimedia Development Cookbook
By :
The video element gives us the power to treat videos like images and manipulate them in fun and exciting ways.
You will need a video available in multiple file formats (which are provided in the chapter code for this book). A server to which to upload your files is recommended, as not all browsers play files locally in a predictable way.
First, we have to prepare an HTML5 page in which to place it. Type the opening tags for our page: <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>Video Explosion</title>.
Open up the stylesheet.css file from the downloaded code files or create a new file with the same name.
Type the following for the body style: body {background: white;color:#333333; }, then style a div tag as shown: div {float:left; border:1px solid #444444;padding:5px;margin:5px; background:#999999;}.
The first unique div we need to create and style is #featured...
Change the font size
Change margin width
Change background colour