Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
The next thing I'd like to talk about are icons that come with Bootstrap. Bootstrap ships with a full set of icons that come from Glyphicons, I'm not sure how you pronounce it exactly, but these are the dingbat font basically, so we have a bunch of little pictures that are associated with. This particular font, and you can incorporate them anywhere you like inside of your webpage. I am looking at 03_05.html, comes from your exercise files folder, copy it into your Bootstrap folder, open it up in your browser.
We've been working on this page through a number of videos. What I'd like to do to add a little bit more visual interest to these four boxes down here at the bottom of this page is, I'd like to add one of these little icons next to each of the titles here. So instead of it just saying vaccinations, let's put a little picture next to vaccinations. That kind of thing. The best place to learn about these is to go to the getbootstrap.com website and you're going to go to Components and the very first item here on this pages is Glyphicons.
And here are all of the various Glyphicons that are available to you, so you can scroll through here and you can look at all the pictures and decide which ones you want to incorporate into your webpage. And underneath each of these there are two classes, one is the glyphicon class itself and the other is one that's specific to. The particular picture of interest. And so this is to tell you what you're going to need to incorporate these into your webpage. So I'd like to go ahead and do that now. I'm going to switch on over to Sublime Text here. And I'm going to scroll on down to line number 32.
Where we start to talk about these four boxes. Line 33 is vaccinations here, and this is where I am going to put in my first one of these icons. So here's the way we do it. We're going to put in a span class here, and we are going to give it a class of. Glyphicon and glyphicon hyphen pushpin. Because what better than a pushpin to show a vaccination? Slash span. So that will wind up being a picture there, next to the word vaccinations. I'm going to copy that span tag, and I'm going to paste that down here next to Checkups.
And this time instead of pushpin, I'm going to make this one glyphicon-ok. Then down here for senior pets I'm going to go ahead and paste this one on in here and this one is going to be glyphicon hyphen heart. And then finally down here under diet plans, we'll go ahead and paste in this one and instead of pushpin this one will be cutlery. And if you go ahead and save this page. And we're going to go ahead and refresh our web browser window. There we go, so we wind-up with these nice little pictures here next to all of these headings and they kind of look smashed-in in a couple of places.
The way Sublime Text has this on the screen it's hard for me to tell if there's a space in between these or not so. The issue is, is whether there's a space after the span tag so, if yours are looking a little smashed, make sure you have a space after your span tag and that will give you a little bit of space in between the icon and the word so I've gone and put in those spaces and we'll refresh this page. There we go. So, now it's not quite right on top of the text. That helps this page quite a bit I think. We have these nice little icons there next to those words. It may jazzes them up at least a little bit.
We will be doing more with this page in terms of making it look a little bit more interesting, particularly those four boxes, but this is a good start on that process.
Get unlimited access to all courses for just $25/month.Become a member
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
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.
Your file was successfully uploaded.