Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Including blockquotes

From: Up and Running with Bootstrap 2

Video: Including blockquotes

In the middle of the page we've been working on between the two days of events, there is a testimonial, it's right here on the page. It's really, really easy to miss it, because it's pretty much buried in all of the text that's going on around it on the page. Fortunately, Bootstrap has some built-in styling that you can apply to a quote like this to make your text pop out just a little bit more. So if you hop on in Dreamweaver, and we're going to scroll down the page here to line 38, and you'll see that we have the quote, "This is simply an amazing conference.

Including blockquotes

In the middle of the page we've been working on between the two days of events, there is a testimonial, it's right here on the page. It's really, really easy to miss it, because it's pretty much buried in all of the text that's going on around it on the page. Fortunately, Bootstrap has some built-in styling that you can apply to a quote like this to make your text pop out just a little bit more. So if you hop on in Dreamweaver, and we're going to scroll down the page here to line 38, and you'll see that we have the quote, "This is simply an amazing conference.

I'm inspired by it each year I attend." That's a paragraph, followed by a paragraph with a person who said it, Katie Cross, and we're going to go ahead and give this a little bit of styling. It's not really marked up correctly anyway, because since this is the quote from somebody, it should really be contained within a blockquote tag. So we'll start with that, we'll give it a blockquote tag and indent the quote, indent the name of the person who said it, and /blockquote will close that.

If we just do that, and we do a File > Save, Ctrl+S or Command+S to save and then view it in the browser, by Preview in Firefox, scrolling down to see it, you'll see that just by putting it in the blockquote tag and marking it up correctly, the text is automatically bigger. You'll see that we have a little border over here on the side which makes it stand out just a little bit, so that was a nice treatment that you can add to that. The next thing that I want to do is deemphasize the person's name.

I want the quote to be more important, so I'd like the text to be a bit bigger, and the person's name to be a bit smaller. And one of the ways that we can do that is with a small tag. Small tag is one of these tags that's come back in HTML5, and we will go ahead and add that now. So right around the name of the person here, instead of just leaving it the way it is, we can put in small tag and /small on the other side of the person's name, and if we save that, and we hop back to Firefox here and Refresh the page, you'll see that the person's name becomes, in fact small, and it's also a lighter gray, scaled back in emphasis just a little bit.

You'll also notice that it puts a character in front of that person's name, that long em dash that's there. So the tilde that I'd put in front of the name before when I typed in the text really isn't necessary anymore, so let's get rid of that. In Dreamweaver we can just get rid of that little character right there and then once again Ctrl+S or Command+S to save and refresh here in Firefox. So the styling for that quote is a lot better. One of the additional things that we can add to the blockquote tag would be the ability to float this quote left or right on the page, and so in Dreamweaver, if in the blockquote tag you go ahead and add a class of either pull-left or pull-right, this will float your quote on the page.

So I'm going to go ahead and save that again. I'm going to take a look at that in Firefox. And so you see here that the quote is here, and it is indeed floated left, it's caused the heading here for Tuesday, March 6, to be pulled up on the page, which is what happens when you have a float that isn't cleared afterwards. So that could be a treatment that will work on some pages. It certainly doesn't work on the page that we're looking at here, but it may be something that you want to do. Remember, pull-left and pull-right are two classes that you can insert pretty much anywhere inside of a document that will cause that element to float left or float right.

This one obviously would need a bit more styling if we decided to use it here. And it is possible to do custom styling inside of Bootstrap. I am going to cover that in a later video in this chapter, the correct way of doing custom styling with Bootstrap to keep your website maintainable. So I don't really like the way that looks. I'm going to go back and pull that class out in Dreamweaver. So I'm just going to get rid of that class of pull-left, but just know that it exists in case you happen to want to do that. So this is a nice built-in styling feature here inside of Bootstrap.

We've got some start for styling the quote and making it stand out of the page a little bit. You can certainly enhance that with your own styles to give it a little bit more polish and stronger treatment if you wish.

Show transcript

This video is part of

Image for Up and Running with Bootstrap 2
Up and Running with Bootstrap 2

32 video lessons · 19753 viewers

Jen Kramer
Author

 

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now "Already a member? Log in

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Up and Running with Bootstrap 2.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Are you sure you want to delete this note?

No

Your file was successfully uploaded.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.