I need some help with developing a breadcrumb trail/menu. I am currently using php scripts to call my menu to the currently viewed page. Due to my menu being so large and wanting to keep all of the content on one screen size, without using vertical scroll bars. I have decided it would be nice to develop a breadcrumb trail, with the ability to be dynamic and provide the menu interface.
As I only started developing web pages in Jan 2010, I have limited knowledge on how to do this.
WOWHEAD has a very good example of how I would like my trail to look
Here is an html and css example that I have that demonstrates the look of the menu.
I would like to use the page's url location to be displayed in the trial, and not the path or attribute.
<div class="breadcrumb">
<p><span>You are here: </span></p>
<ul>
<li><a href="/som/">Home</a>
<ul>
<li><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
</ul>
</li>
<li><a href="#">1</a>
<ul>
<li><a href="#">1.1</a></li>
<li><a href="#">1.2</a></li>
</ul>
</li>
<li><a href="#">1.1</a>
<ul>
<li><a href="#">1.1a</a></li>
<li><a href="#">1.1b</a></li>
</ul>
</li>
<li class="last">1.1a</li>
</ul>
</div>
The css for the example
.breadcrumb {
float : left;
margin : 0;
padding : 2px 8px 2px 8px;
width : 956px;
color : #080808;
background : #ededed;
position : relative;
z-index : 10;
font-size : 11px;
}
.breadcrumb span {
color : #264e84;
font-weight : bold;
}
.breadcrumb p {
padding : 5px 0 0 0;
margin : 0;
float : left;
}
.breadcrumb ul {
list-style-type : none;
padding : 0;
float : left;
margin : 0;
display : inline-block;
width : 876px;
}
.breadcrumb ul li {
display : block;
float : left;
margin : 0;
position : relative !important ;
background : url('breadcrumb.gif') no-repeat right 3px;
padding : 5px 23px 5px 10px;
}
.breadcrumb ul li a {
padding-bottom : 5px;
text-decoration : none;
color : #000;
}
.breadcrumb ul li ul {
display : none;
float : left;
position : absolute !important ;
z-index : 100;
width : 191px;
}
.breadcrumb ul li ul li, #breadcrumb ul li ul li:hover {
padding : 0;
margin : 0;
background : none;
}
.breadcrumb ul li ul li {
display : block;
float : none;
clear : both;
border : 1px solid #ededed;
border-width : 0 1px;
}
.breadcrumb ul li:hover {
background : #dcdcdc url('breadcrumb_down.gif') no-repeat right 3px;
}
.breadcrumb ul li:hover ul {
display : block;
position : absolute;
z-index : 5;
left : 0;
top : 23px;
margin : 0;
padding : 3px 0 0 0;
border : 1px solid #ededed;
border-width : 0 0 1px 0;
}
.breadcrumb ul li ul li a {
display : block;
background : #fff;
color : #6e6e6e;
padding : 5px;
text-decoration : none;
width : 179px;
}
.breadcrumb ul li ul li a:hover {
text-decoration : none;
background : #dcdcdc;
}
.breadcrumb ul li.last, #breadcrumb ul li.last:hover {
background : none !important ;
}
My actual unordered list menu looks similar to this
<ul>
<li>HOME
<ul>
<li><a href="#">1</a>
<ul>
<li><a href="#">1.1</a>
<ul>
<li><a href="#">1.1a</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>