27.10.2014 Views

Google Maps API 3

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CHAPTER 7 ■ INFOWINDOW TIPS AND TRICKS<br />

The Complete CSS for the InfoWindow<br />

Listing 7-5 shows the CSS.<br />

Listing 7-5. The Complete CSS for the InfoWindow<br />

#info {<br />

width: 350px;<br />

}<br />

#info h2 {<br />

margin-top: 0;<br />

}<br />

#info img {<br />

float: left;<br />

margin-right: 10px;<br />

}<br />

Inserting a Video Using HTML5<br />

With HTML 5 you will be able to do a lot of things that you need third-party plug-ins for now. One of<br />

these things is video playback. Today the dominant technique is to use Flash or Silverlight. But because<br />

HTML5 has native support for video, there’s no need for that. It’s no harder inserting a video than it is<br />

inserting an image.<br />

Browser Support<br />

It’s important to note that the HTML 5 specification is still in draft form, so it can’t be used as a fullfledged<br />

alternative yet. There is, however, surprisingly widespread support for it in most modern web<br />

browsers. Because of this, you can use it right now. You must be aware, though, that it will only work in<br />

browsers that support it.<br />

As of the time of writing, which is summer 2010, the web browsers that support HTML video are<br />

<strong>Google</strong> Chrome 4 and 5, Firefox 3.6, Opera 10.5, and Safari 4. Not surprisingly, the current versions of<br />

Internet Explorer do not support this, but it looks like IE9 will have support for it.<br />

The site findmebyIP features a great page for checking browser support for HTML5 (and CSS3). It<br />

can be found at www.findmebyip.com/litmus (see Figure 7-4).<br />

139

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!