[All Adaptavist Apps]

Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Excerpt

This short tutorial shows you how to style the breadcrumbs

The Breadcrumbs are built from an ordered list eg:

CSS Stylesheet
Wiki Markup
{excerpt}This short tutorial shows you how to style the breadcrumbs{excerpt}

h2. HTML Structure

The Breadcrumbs are built from an ordered list eg:
{style}
.code {width:700px;}
{style}
{code}
Code Block
<span class="breadcrumbs">
  <ol class="breadcrumbs ellipsis" id="breadcrumbs.list">
    <li class="breadcrumb breadcrumb0 dashboardbreadcrumb"><a href="/dashboard.action">Dashboard</a>&nbsp;&gt;</li>
    <li class="breadcrumb breadcrumb1 spacebreadcrumb"><a href="/display/Docu">Documentation Intranet</a>&nbsp;&gt;</li>
    <li class="breadcrumb breadcrumbsExpansion breadcrumb2 pagebreadcrumb"><a href="/display/Docu/Home">Home</a>&nbsp;&gt;</li>
    <li class="breadcrumb breadcrumbsEllipsis breadcrumb2"><a href="javascript:void(document.getElementById('breadcrumbs.list').className = 'breadcrumbs expanded');" title="$3">...</a>&nbsp;&gt;</li>
    <li class="breadcrumb breadcrumb3 pagebreadcrumb"><a href="/display/Docu/Breadcrumbs+CSS">Breadcrumbs CSS</a></li>
  </ol>
</span>
{code}

The

...

ellipsis

...

works

...

by

...

adding

...

a

...

classname

...

to

...

the

...

ordered

...

list

...

which

...

switches

...

between

...

two

...

sets

...

of

...

css,

...

one

...

where

...

the

...

expansion

...

is

...

hidden

...

and

...

the

...

ellipsis

...

visible,

...

the

...

other

...

with

...

the

...

ellipsis

...

hidden

...

and

...

the

...

expansion

...

visible.

...

...

...

You can remove any of the first three items in the breadcrumb trail using the options:

Simply tick which links you want to remove and they'll no longer appear in the breadcrumb trail.

CSS Stylesheet


If you want to hide any of the first three items on the breadcrumb trail, use [USERGUIDE:Breadcrumb Options] in theme configuration.

(on) We've applied this example to this page using the [AtlassianConfluence:style macro].

h2. Hints and Tips

You can remove any of the first three items in the breadcrumb trail using the options:

* Builder 1.x and 2.x: [Navigation panel settings|Theme Configuration 2.x].
* Builder 3.x and above: [Options Tab] in [Layout Manager]

Simply tick which links you want to remove and they'll no longer appear in the breadcrumb trail.

{style}
.breadcrumb {
 background-color: #ffff00;
}
 
.breadcrumb0 {
 background-color: #00ff00;
}
 
.breadcrumb1 {
 background-color: #ffffff;
}

.breadcrumbs li a:link {
 color: #ff0000;
}

.breadcrumbs li a:hover {
 color: #000000;
}

.breadcrumbs li a:visited {
 color: #0000ff;
}
{style}