The site breadcrumb shown in Figure A-19 includes the following CSS elements. To display the breadcrumb in a more traditional way, similar to how it was done in SharePoint 2007, follow the steps within this blog post: http://erikswenson.blogspot.com/2010/11/convert-folder-breadcrumb-to.html
.
This class is used to add margins and spacing around the breadcrumb image and also vertically align it to the bottom, as shown in Figure A-20. Listing A-20 shows the standard CSS properties.
.s4-breadcrumb-anchor,.ms-qatbutton{
margin:0px 3px 0px 0px;
padding:2px 5px 0px;
display:inline-block;
text-align:center;
border:1px solid transparent;
vertical-align:bottom;
}
This icon is displayed by using the “fgimg.png” sprite image and having inline CSS set the position of it, as shown in Figure A-21. Listing A-21 shows the inline CSS properties.
left: 0px !important;
top: -112px !important;
border: none;
position: absolute;
The following classes are used to set the minimum and maximum width, padding, word wrap, horizontal overflow, border size, font size, background image, and background color. The inline CSS is used to set the positioning and z-index of the menu, as shown in Figure A-22. Listing A-22 shows the class and inline CSS properties.
.s4-breadcrumb-menu{
max-width:400px;
min-width:142px;
padding:1px 15px 5px 1px;
word-wrap:break-word;
-ms-word-wrap:break-word;
overflow-x:hidden;
border:1px solid;
font-size:8pt;
}
.v4master .s4-breadcrumb-menu{
background:url("/_layouts/images/selbg.png") repeat-x left top;
-color:#f8f8f8;
border-color:#94989f;
}
/* Inline CSS on DIV */
left: 89px;
top: 40px;
display: none;
visibility: visible;
position: absolute;
z-index: 1002;
The following classes within the container set the margins, padding, and dashed border on the bottom. The header class sets the text to be displayed inline and also sets the color, as shown in Figure A-23. Listing A-23 shows the standard CSS properties that are used for both elements.
.s4-breadcrumb-top{
display:block;
margin-bottom:5px;
margin-right:-15px;
padding:5px;
border-bottom:1px dashed;
}
.v4master .s4-breadcrumb-top{
border-bottom-color:#a7b0ba;
}
.s4-breadcrumb-header{
display:inline;
}
.v4master .s4-breadcrumb-header{
color:#3b4f65;
}
The following classes are used to set the padding and margins of the item to zero, sets the color, and adds in a margin to the left, as shown in Figure A-24. Listing A-24 shows the standard CSS properties.
.s4-breadcrumbNode,.s4-breadcrumbCurrentNode,.s4-breadcrumbRootNode{
list-style-type:none;
padding:0px;
margin:0px;
}
.v4master .s4-breadcrumbNode,
.v4master .s4-breadcrumbCurrentNode,
.v4master .s4-breadcrumbRootNode{
color:#3b4f65;
}
ul.s4-breadcrumbNode{
margin-left:21px;
}
This icon is displayed by using the “fgimg.png” sprite image and having inline CSS set the position of it, as shown in Figure A-25. Listing A-25 shows the inline CSS properties.
left: 0px !important;
top: -353px !important;
border: none;
position: absolute;
The next section that I will cover is the text that displays the logged-in user's name in the top right of the Ribbon.
52.15.59.163