Yeah, well, the floating LI seems to be the cause.  If I unfloat the LIs I 
don't have the same problems, but the background doesn't fit the space properly.

I ended up using a different system to get the result I wanted.  I had to 
modify it a bit from what I found online.

The code I used is below for other people's reference.


#SubMenu{
        padding: 0;
        width: 100%;
        overflow: hidden;
        background: transparent;
        margin-bottom: 15px;
        font-size: 0.8em;
}

#SubMenu ul{
        margin: 0;
        padding: 0;
        list-style: none;
}

#SubMenu li {
        display: inline;
        margin: 0 2px 0 0;
        padding: 0;
}

#SubMenu a{
        float: left;
        color: white;
        background: #804000 url(../images/submenu_right.gif) no-repeat right 
top;
        margin: 0 5px 0 0;
        padding: 1 0 1px 3px;
        text-decoration: none;
}

#SubMenu a span{
        float: left;
        display: block;
        background: transparent url(../images/submenu_left.gif) no-repeat left 
top;
        padding: 3px 9px 3px 6px;
        cursor: pointer;
}

#SubMenu a span{
        float: none;
}


-----Original Message-----
From: Troy Harshman [mailto:[email protected]]
Sent: Wednesday, January 27, 2010 11:02 AM
To: O'Brien, Corey (US - Harrisburg)
Cc: [email protected]
Subject: Re: [css-d] LI Background Image Positioning Problem

Perhaps it's the result of using negative margins on your list items.


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/

Reply via email to