I have a problem with background positioning. In IE 8 with Compatibility Mode
on the left and right background images show up perfectly on the sides of my
<li> items like I want them but when I turn off compatibility mode or use
Chrome, the right background image "submenu_right.gif" seems to line up with
the right edge of the text inside the <li> instead of the actual right edge of
the block.
Any ideas on how to fix the problem?
Thank you in advance.
The code is below:
HTML
<div id="SubMenu">
<ul>
<li><a href="VisionMissionandValues.html"><span>Vision,
Mission, and Values</span></a></li>
<li><a href="OfficersBoardDirectors.html"><span>Officers and
Board of Director</span></a></li>
</ul>
</div>
CSS
#SubMenu {
color: #FFFFFF;
font-size: 0.8em;
margin-bottom: 15px;
}
#SubMenu li {
display: inline;
background:url(../images/submenu_back.gif) repeat-x;
margin-left: -10px;
margin-right: -10px;
}
#SubMenu ul {
margin: 0px;
list-style-type: none;
text-align: center;
}
#SubMenu li a {
background:url(../images/submenu_left.gif) left top no-repeat;
text-decoration: none;
color: #FFFFFF;
padding: 0px 15px 10px 15px;
}
#SubMenu li a span {
background:url(../images/submenu_right.gif) right top no-repeat;
padding-bottom: 10px;
}
This message (including any attachments) contains confidential information
intended for a specific individual and purpose, and is protected by law. If you
are not the intended recipient, you should delete this message.
Any disclosure, copying, or distribution of this message, or the taking of any
action based on it, is strictly prohibited. [v.E.1]
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/