14.08.2016 Views

Beginning JavaScript with DOM Scripting and Ajax, 2nd Edition

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 11 ■ Using Third-Party <strong>JavaScript</strong><br />

Figure 11-7. Helvetica is the default font for the page once bootstrap starts working<br />

Now that you know bootstrap is working, you can use some of its features. First you can put the header inside a<br />

div that uses the container class. Next you can add a paragraph declaring that what comes next is your button. Inside<br />

this paragraph, you use the text-info class to give it style. After that, you can add a button element <strong>with</strong> the btn class.<br />

When looking at this in a browser, you should have your text moved over from the left <strong>and</strong> your new copy <strong>and</strong> button<br />

ready to go.<br />

exampleBootstrapButton.html<br />

<br />

<br />

<br />

Bootstrap Template<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

This is my header<br />

This is my Button<br />

Click Me<br />

<br />

<br />

<br />

www.it-ebooks.info<br />

337

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

Saved successfully!

Ooh no, something went wrong!