The Welcome Menu shown in Figure A-26 includes the following CSS elements. The drop-down element uses the same classes as the Site Actions menu. Refer to those classes specified earlier in this chapter as needed.
This class is used to float the element to the left and add in some margins, as shown in Figure A-27. Listing A-26 shows the standard CSS properties.
.s4-trc-container-menu{
float:left;
margin:12px 3px;
}
The first class is used to add padding, margins, font size, and font family, as shown in Listing A-27. The second class within Listing A-27 adds the border and background image styles for when you hover over the user's name.
.ms-welcomeMenu{
padding:2px 5px 3px;
margin:0px 3px;
font-size:1em;
font-family:Verdana,sans-serif;
border:1px solid transparent;
display:inline-block;
}
.ms-welcomeMenu.ms-SpLinkButtonActive{
border-color:#8b929a;
background:url("/_layouts/images/bgximg.png") repeat-x -0px -489px;
background-color:#21374c;
}
This class is used to add margins, text color, and text decoration, as shown in Figure A-28. Listing A-28 shows the standard CSS properties.
.ms-welcomeMenu .ms-menu-a{
margin-right:5px;
}
.ms-welcomeMenu a:link{
color:#fff;
}
.ms-welcomeMenu a:hover{
text-decoration:none !important;
}
.ms-welcomeMenu.ms-SpLinkButtonActive a:link{
color:#fff;
}
This is the same icon and style used for the site actions menu. It is displayed by using the “fgimg.png” sprite image and having inline CSS to position the icon as shown in Figure A-29. Listing A-29 shows the inline CSS properties.
left: 0px !important;
top: -491px !important;
border: none;
position: absolute;
Within this next section I will describe the main container elements that frame the header and content areas.
3.147.66.178