Hi, I'm a CSS newbie, so apologies if the explanation of my problem isn't clear. Here is what I want to do: On some of my product pages, I want to display a picture of the product with some buttons superimposed on it, which, when rolled over, pop up menus of options -- in other words, doing the good old-fashioned UL flyout menu. The problem is that while the flyout menus work, they are clipped to the div that contains the div that contains them. My logical structure is as follows: <div that displays the package as its background> <div that displays the button as its background> <ul> <li's> </ul> </div> </div>
The problem is that no matter what I seem to do, the UL can escape the box of the containing div (the button div) but not the package div. Here's the actual code... with crap that's leftover from various attempts to get this to work. /* content, product information */ .package { position: relative; background-color: #777; background-repeat: no-repeat; background-position: top left; overflow: hidden; height: 285px; width: 197px; margin: 0 0 0 0; border: 0; padding: 0; float: left; clear: both; } /* definitions of the buttons and the hover lists inside it */ .button { position: relative; background-repeat: no-repeat; background-position: top left; float: right; clear: both; width: 42px; height: 43px; margin: 0 0 0 0; border: 0; padding: 0; overflow: visible; } /* hover rules for the tables embedded in the tabs */ .button ul { display: none; } .button:hover ul { background:#013298; display: block; position: absolute; left: 21px; border: none; overflow: visible; white-space: nowrap; clip: rect(0,500px,500px,0); z-index: 1; } .... and here is how it is used .... <div class="package" style="background-image: url(IMG/BBLJA_webres.jpg)"> <div class="button" style="background-image: url(Design/IMG/tinybutton.jpg)"> <ul> <li>derf 1</li> <li>derf derf</li> <li>dork</li> </ul> </div> <div class="button" style="background-image: url(Design/IMG/tinybutton.jpg)"> <ul> <li>derf 1</li> <li>derf derf</li> <li>dork</li> </ul> </div> <div class="button" style="background-image: url(Design/IMG/tinybutton.jpg)"> <ul> <li>derf 1</li> <li>derf derf</li> <li>dork</li> </ul> </div> </div>
I'm sure this is something obvious, but would appreciate having the obvious pointed out to me... Thanks in advance,R
|