Start learning with our library of video tutorials taught by experts. Get started

Joomla! 1.5: Styling with CSS

Styling breadcrumbs


From:

Joomla! 1.5: Styling with CSS

with Jen Kramer

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.

Watch this entire course now—plus get access to every course in the library. Each course includes high-quality videos taught by expert instructors.

Become a member
Please wait...
Joomla! 1.5: Styling with CSS
2h 29m Intermediate Jan 09, 2009

Viewers: in countries Watching now:

Joomla! 1.5: Styling with CSS shows how those familiar with Joomla! and with hand-coded HTML and CSS can take the next step in creating a dynamic website with a unique look and feel. Jen Kramer McKibben goes deep into the functionality of this open-source content management system, exploring topics like putting more style into modules, editing CSS on the fly using the Firefox Web Developer toolbar, creating horizontal and vertical menu layouts, and including images in those menus. Exercise files accompany the course.

Topics include:
  • Using the Firefox Web Developer toolbar
  • Styling Joomla! modules
  • Styling a multi-page article
  • Creating horizontal and vertical menus
  • Incorporating images in menus
  • Styling banner ads
Subjects:
Developer Web CMS Web Development
Software:
Joomla!
Author:
Jen Kramer

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.

Find answers to the most frequently asked questions about Joomla! 1.5: Styling with CSS.


Expand all | Collapse all
Please wait...
Q: I’m having trouble understanding the role of the Start Level/End Level function in developing a menu, as described in the  “Styling Menus Vertically” video.  What is the key to understanding this function?
A: The Start Level and End Level are the way a menu is segmented, to show all or part of that menu.

By default, the Start Level and End Level are set to 0. This means that the entire menu will show.

If you would like to have just the top level navigation show (perhaps for a top menu bar), but none of the secondary, tertiary, or deeper navigation, set Start Level to 0 and End Level to 1.

If you would like to have just the secondary navigation show (i.e. you're in the "about" portion of the site and you'd like to have the about secondary navigation show on the left side of the page), set the Start Level to 1 and the End Level to 2. If you'd like to show all of the navigation (secondary, tertiary, and any deeper navigation), set the Start Level to 1 and the End Level to 0 (i.e. infinite).

The only tricky part about setting the Start and End Levels is that zero means different things in different locations.

For the Start Level, zero means the very beginning of the navigation. Engineers start counting with zero, while we are normally taught to start counting with 1, so this may be the cause of some confusion.  This means that 1 actually corresponds to the second level, 2 to the third level, and so forth.

For the End Level, zero indicates "infinity", or however far out the navigation goes.
Share a link to this course
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.
Upgrade now


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.

Upgrade now

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
Welcome to the redesigned course page.

We’ve moved some things around, and now you can



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.

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