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

Styling breadcrumbs

From: Joomla! 1.5: Styling with CSS

Video: Styling breadcrumbs

Now that we have got our menus in place and they are all styled, let's move on to some of the other elements of our webpage. One of the things you may have noticed about this site is the breadcrumbs right above the word Products on this particular page. The breadcrumb consists of a link to the home page followed by an arrow, followed by the name of the page that we are on, in this particular case. If we go further into the site say, Hot Chocolate and let's go into the Caramel Truffle page, the breadcrumb gets much longer. So we have gone from Home, to Products, to Hot Chocolate, to Caramel Truffle.

Styling breadcrumbs

Now that we have got our menus in place and they are all styled, let's move on to some of the other elements of our webpage. One of the things you may have noticed about this site is the breadcrumbs right above the word Products on this particular page. The breadcrumb consists of a link to the home page followed by an arrow, followed by the name of the page that we are on, in this particular case. If we go further into the site say, Hot Chocolate and let's go into the Caramel Truffle page, the breadcrumb gets much longer. So we have gone from Home, to Products, to Hot Chocolate, to Caramel Truffle.

Breadcrumbs are a great usability tool because I have an easy and clear way to get back to a level or two above where I am currently. Joomla! makes these really easy to add to your site as well. The breadcrumb looks a little bit big though and it is also smashed right into the title of this webpage. So I would like to add a little bit of styling to this. So I am going to open up CSS > Edit CSS and I am going to go to the default tab. I am going to scroll on down to the content area of my style sheet and I am going to add my breadcrumb styles within this area.

Let's take a look at the HTML that makes up our breadcrumb. So if we scroll down to the content for this webpage, just above that you will see that we have a div id of content, a div class of moduletable and then we have a series of span tags, links and images. Span with a class of breadcrumbs and pathway. A link for the home page followed by an image called arrow.png. Arrow.png is located in M_images which is in the Images folder in our website ChocolateBliss.

We are going to replace this arrow later in this video. The arrow right now is orange, as you can see here and it doesn't really go with the rest of this website. So I am going to replace it with a pink arrow a little bit later on. But first let's worry about styling the text of this webpage. Rather than worrying with the spans or the links here, I am just going to style div class, moduletable. Because this is the only module table that's going to appear within content. So I am going to add a content, div. moduletable and what I would like to do is make the font size first of all, a little bit smaller. Now I would like to give a little bit more breathing room between the bottom of the breadcrumbs and the top of the title. So I am going to add some padding on the bottom. Let's try 2 ems. That looks much better.

Now I am going to copy and paste all of my CSS into the Joomla! style sheet. Ctrl+A or Command+A, Ctrl+C or Command+C, to copy the style sheet. In the Template Manager, we will go to Inside, Edit, Edit CSS, default, Edit and once again Ctrl+A or Command+A, Ctrl+V or Command+V to paste in all of that CSS and Save. And when we refresh our webpage, you will see that our breadcrumbs are looking much better. Now I would like to replace that arrow. In advance of this video, I downloaded this arrow to Fireworks and I recolored it with the same pink that's used elsewhere on the website and saved it out as a file of the same name arrow.png. Now I am going to copy that arrow.png file into the Joomla! website.

So I am going to go my Exercise Files and I am going to go to arrow.png. I am right clicking or Command+Clicking. I am going to go to Copy then I am going to go to my Joomla! website. This is the root of my Joomla! website, yours may be in a different location. From here, we want to go to images, M_images and then here you will see that we have a file called arrow.png. There is also called arrow_rtl.png. That's for sites that have text that go from right to left.

Now I am going to right click or Command +Click and pick Paste and I am going to Copy and Replace and there is my arrow.png file. Now when I go back to my website and I click Refresh, my new pink images come up. If they didn't come up for you, keep in mind that your browser may have cached the arrow.png that was orange. Make sure you go to the cache for your browser and clear it, if you still see an orange arrow and you have copied the arrow to the correct location.

Breadcrumbs are very functional on large websites and they add a great layer of web usability and some additional navigation to your website. It just makes it a little bit easier to use and Joomla! makes them so simple to add. You might consider adding them to your Joomla! website.

Show transcript

This video is part of

Image for Joomla! 1.5: Styling with CSS
Joomla! 1.5: Styling with CSS

22 video lessons · 15876 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 Joomla! 1.5: Styling with CSS.

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.